2014-06-20 12:17:24 -04:00
|
|
|
HomeController = require('./HomeController')
|
2014-10-08 11:07:44 -04:00
|
|
|
UniversityController = require("./UniversityController")
|
|
|
|
|
2014-06-20 12:17:24 -04:00
|
|
|
|
|
|
|
module.exports =
|
2015-06-30 09:38:32 -04:00
|
|
|
apply: (webRouter, apiRouter) ->
|
|
|
|
webRouter.get '/', HomeController.index
|
|
|
|
webRouter.get '/home', HomeController.home
|
2014-06-20 12:17:24 -04:00
|
|
|
|
2015-06-30 09:38:32 -04:00
|
|
|
webRouter.get '/tos', HomeController.externalPage("tos", "Terms of Service")
|
|
|
|
webRouter.get '/about', HomeController.externalPage("about", "About Us")
|
|
|
|
webRouter.get '/security', HomeController.externalPage("security", "Security")
|
|
|
|
webRouter.get '/privacy_policy', HomeController.externalPage("privacy", "Privacy Policy")
|
|
|
|
webRouter.get '/planned_maintenance', HomeController.externalPage("planned_maintenance", "Planned Maintenance")
|
|
|
|
webRouter.get '/style', HomeController.externalPage("style_guide", "Style Guide")
|
2014-06-20 12:17:24 -04:00
|
|
|
|
2015-06-30 09:38:32 -04:00
|
|
|
webRouter.get '/dropbox', HomeController.externalPage("dropbox", "Dropbox and ShareLaTeX")
|
2014-10-08 11:07:44 -04:00
|
|
|
|
2015-06-30 09:38:32 -04:00
|
|
|
webRouter.get '/university', UniversityController.getIndexPage
|
|
|
|
webRouter.get '/university/*', UniversityController.getPage
|