Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lyfeyaj committed Dec 2, 2016
1 parent c3bbf12 commit de7d8ac
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions docs/zh-CN/guide.md
Expand Up @@ -81,16 +81,10 @@ $ node app.js
const baiji = require('baiji');
const app = baiji('using-controller');

class UsersCtrl extends baiji.Controller {
class UsersController extends baiji.Controller {
constructor() {
super();

// 设置控制器名称
this.setName('users');

// 设置控制器默认挂在地址
this.setMountPath('/users');

// 设置过滤器
this.beforeAction('signInRequired');
}
Expand Down

0 comments on commit de7d8ac

Please sign in to comment.