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/static/js/controllers/home_controller.js
2016-03-31 22:33:49 +02:00

19 lines
424 B
JavaScript

'use strict';
class HomeController {
constructor(topNavigationController, homeView) {
this.topNavigationController = topNavigationController;
this.homeView = homeView;
}
indexRoute() {
this.topNavigationController.activate('home');
this.homeView.render();
}
notFoundRoute() {
this.topNavigationController.activate('');
}
}
module.exports = HomeController;