gallery.accords-library.com/client/js/controllers/comments_controller.js

20 lines
507 B
JavaScript
Raw Normal View History

'use strict';
const page = require('page');
const topNavController = require('../controllers/top_nav_controller.js');
const EmptyView = require('../views/empty_view.js');
class CommentsController {
registerRoutes() {
page('/comments', (ctx, next) => { this._listCommentsRoute(); });
this._emptyView = new EmptyView();
}
_listCommentsRoute() {
topNavController.activate('comments');
this._emptyView.render();
}
}
module.exports = new CommentsController();