This commit is contained in:
barisusakli
2014-04-27 16:41:40 -04:00
parent a32fd3f6f9
commit 1d1d677b56
2 changed files with 28 additions and 0 deletions

View File

@@ -49,6 +49,8 @@ function staticRoutes(app, middleware, controllers) {
}
function topicRoutes(app, middleware, controllers) {
app.get('/api/topic/teaser/:topic_id', controllers.topics.teaser);
app.get('/topic/:topic_id/:slug?', middleware.buildHeader, middleware.addSlug, controllers.topics.get);
app.get('/api/topic/:topic_id/:slug?', controllers.topics.get);
}