Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 33285bbbb8
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.624 kb
module.exports = (app) ->
routers = require('./controllers/controllers')
# Home
app.get "/", routers.index
app.get "/ui-tests/", routers.indexTest
# Categories
app.get "/categories/", routers.getCategories
app.post "/categories/", routers.newCategory
app.get "/categories/:category/", routers.category
app.del "/categories/:category/", routers.deleteCategory
# Article
app.get "/categories/:category/articles/", routers.getArticles
app.post "/categories/:category/articles/", routers.newArticle
app.get "/categories/:category/articles/:year/:month/:day/:article", \
routers.getArticle
Jump to Line
Something went wrong with that request. Please try again.