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