69fe8ec31a
- Move controls to the "controls/" directory - Make controls interface look similar to each other - Prefix "private" methods and attributes with underscore
16 lines
377 B
JavaScript
16 lines
377 B
JavaScript
'use strict';
|
|
|
|
const page = require('page');
|
|
const topNavController = require('../controllers/top_nav_controller.js');
|
|
|
|
class CommentsController {
|
|
registerRoutes() {
|
|
page('/comments', (ctx, next) => { this._listCommentsRoute(); });
|
|
}
|
|
|
|
_listCommentsRoute() {
|
|
topNavController.activate('comments');
|
|
}
|
|
}
|
|
|
|
module.exports = new CommentsController();
|