17 lines
375 B
JavaScript
17 lines
375 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();
|