76882b59ef
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.
18 lines
407 B
JavaScript
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();
|