szurubooru/client/js/controllers/history_controller.js
rr- 76882b59ef client/router: introduce own router
I'm tired of page.js lack of documentation around finer quirks, and
being forced to read its crap code. Refactored into classes, removed
unused cruft.
2016-06-12 21:43:20 +02:00

18 lines
407 B
JavaScript

'use strict';
const router = require('../router.js');
const topNavController = require('../controllers/top_nav_controller.js');
class HistoryController {
registerRoutes() {
router.enter(
'/history',
(ctx, next) => { this._listHistoryRoute(); });
}
_listHistoryRoute() {
topNavController.activate('');
}
}
module.exports = new HistoryController();