szurubooru/client/js/controllers/history_controller.js
rr- 69fe8ec31a 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
2016-05-21 00:08:43 +02:00

16 lines
364 B
JavaScript

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