15 lines
503 B
JavaScript
15 lines
503 B
JavaScript
var frontend = require('../controllers/frontend'),
|
|
Ghost = require('../../ghost'),
|
|
|
|
ghost = new Ghost();
|
|
|
|
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);
|
|
server.get(ghost.settings('permalinks'), frontend.single);
|
|
server.get('/', frontend.homepage);
|
|
};
|