2013-12-30 11:03:29 +04:00
|
|
|
var frontend = require('../controllers/frontend');
|
|
|
|
|
2013-11-12 09:27:12 +04:00
|
|
|
module.exports = function (server) {
|
2013-12-30 11:03:29 +04:00
|
|
|
/*jslint regexp: true */
|
|
|
|
|
2013-11-12 09:27:12 +04:00
|
|
|
// ### Frontend routes
|
|
|
|
server.get('/rss/', frontend.rss);
|
|
|
|
server.get('/rss/:page/', frontend.rss);
|
2014-02-13 07:26:56 +04:00
|
|
|
server.get('/tag/:slug/page/:page/', frontend.tag);
|
|
|
|
server.get('/tag/:slug/', frontend.tag);
|
2013-11-12 09:27:12 +04:00
|
|
|
server.get('/page/:page/', frontend.homepage);
|
|
|
|
server.get('/', frontend.homepage);
|
2014-02-02 09:29:07 +04:00
|
|
|
server.get('*', frontend.single);
|
2013-12-30 11:03:29 +04:00
|
|
|
};
|