mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
4556e1df0a
closes #2260 - added routes for /tag/:slug/rss and /tag/:slug/rss/:page - added support for tag in the rss controller - added route tests for each extra case - fixing a tiny typo in some test descriptions
16 lines
569 B
JavaScript
16 lines
569 B
JavaScript
var frontend = require('../controllers/frontend');
|
|
|
|
module.exports = function (server) {
|
|
/*jslint regexp: true */
|
|
|
|
// ### Frontend routes
|
|
server.get('/rss/', frontend.rss);
|
|
server.get('/rss/:page/', frontend.rss);
|
|
server.get('/tag/:slug/rss/', frontend.rss);
|
|
server.get('/tag/:slug/rss/:page/', frontend.rss);
|
|
server.get('/tag/:slug/page/:page/', frontend.tag);
|
|
server.get('/tag/:slug/', frontend.tag);
|
|
server.get('/page/:page/', frontend.homepage);
|
|
server.get('/', frontend.homepage);
|
|
server.get('*', frontend.single);
|
|
}; |