mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
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);
|
|
};
|