2016-03-19 21:37:04 +01:00
|
|
|
'use strict';
|
|
|
|
|
2016-04-05 17:57:26 +02:00
|
|
|
require('./util/handlebars-helpers.js');
|
|
|
|
|
2016-04-06 21:49:26 +02:00
|
|
|
let controllers = [];
|
|
|
|
controllers.push(require('./controllers/posts_controller.js'));
|
|
|
|
controllers.push(require('./controllers/users_controller.js'));
|
|
|
|
controllers.push(require('./controllers/help_controller.js'));
|
|
|
|
controllers.push(require('./controllers/auth_controller.js'));
|
|
|
|
controllers.push(require('./controllers/comments_controller.js'));
|
|
|
|
controllers.push(require('./controllers/history_controller.js'));
|
|
|
|
controllers.push(require('./controllers/tags_controller.js'));
|
2016-03-19 21:37:04 +01:00
|
|
|
|
2016-04-06 21:49:26 +02:00
|
|
|
controllers.push(require('./controllers/home_controller.js'));
|
2016-03-19 21:37:04 +01:00
|
|
|
|
2016-04-06 21:49:26 +02:00
|
|
|
const page = require('page');
|
|
|
|
for (let controller of controllers) {
|
|
|
|
controller.registerRoutes();
|
|
|
|
}
|
2016-03-19 21:37:04 +01:00
|
|
|
page();
|