This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
szurubooru/client/js/controllers/comments_controller.js

17 lines
375 B
JavaScript
Raw Normal View History

'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();