mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/general: refactor all the things
- Move controls to the "controls/" directory - Make controls interface look similar to each other - Prefix "private" methods and attributes with underscore
This commit is contained in:
@ -5,10 +5,10 @@ const topNavController = require('../controllers/top_nav_controller.js');
|
||||
|
||||
class CommentsController {
|
||||
registerRoutes() {
|
||||
page('/comments', (ctx, next) => { this.listCommentsRoute(); });
|
||||
page('/comments', (ctx, next) => { this._listCommentsRoute(); });
|
||||
}
|
||||
|
||||
listCommentsRoute() {
|
||||
_listCommentsRoute() {
|
||||
topNavController.activate('comments');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user