0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/routes/frontend.js

15 lines
503 B
JavaScript
Raw Normal View History

2013-11-21 19:44:18 +01:00
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);
2013-11-21 19:44:18 +01:00
server.get(ghost.settings('permalinks'), frontend.single);
server.get('/', frontend.homepage);
2013-11-21 19:44:18 +01:00
};