0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/server/routes/frontend.js
2013-11-23 17:02:17 +01:00

14 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);
};