2013-11-21 19:44:18 +01:00
|
|
|
var frontend = require('../controllers/frontend'),
|
|
|
|
Ghost = require('../../ghost'),
|
|
|
|
|
|
|
|
ghost = new Ghost();
|
2013-11-12 00:27:12 -05:00
|
|
|
|
|
|
|
module.exports = function (server) {
|
|
|
|
// ### Frontend routes
|
|
|
|
/* TODO: dynamic routing, homepage generator, filters ETC ETC */
|
|
|
|
server.get('/rss/', frontend.rss);
|
|
|
|
server.get('/rss/:page/', frontend.rss);
|
|
|
|
server.get('/page/:page/', frontend.homepage);
|
2013-11-21 19:44:18 +01:00
|
|
|
server.get(ghost.settings('permalinks'), frontend.single);
|
2013-11-12 00:27:12 -05:00
|
|
|
server.get('/', frontend.homepage);
|
2013-11-21 19:44:18 +01:00
|
|
|
};
|