split files into client/ and server/

This commit is contained in:
rr-
2016-04-01 18:45:25 +02:00
parent 1ad71585c4
commit e487adcc97
72 changed files with 55 additions and 46 deletions

View File

@ -0,0 +1,21 @@
'use strict';
const topNavController = require('../controllers/top_nav_controller.js');
const HomeView = require('../views/home_view.js');
class HomeController {
constructor() {
this.homeView = new HomeView();
}
indexRoute() {
topNavController.activate('home');
this.homeView.render();
}
notFoundRoute() {
topNavController.activate('');
}
}
module.exports = new HomeController();