overleaf/services/web/app/coffee/Features/StaticPages/UniversityController.coffee

17 lines
399 B
CoffeeScript
Raw Normal View History

2014-10-08 15:07:44 +00:00
settings = require("settings-sharelatex")
logger = require("logger-sharelatex")
2016-06-06 08:28:53 +00:00
Settings = require("settings-sharelatex")
sixpack = require("../../infrastructure/Sixpack")
2016-06-06 08:28:53 +00:00
2014-10-08 15:07:44 +00:00
2016-09-22 14:33:50 +00:00
module.exports = UniversityController =
2014-10-08 15:07:44 +00:00
getPage: (req, res, next)->
2016-10-07 16:10:58 +00:00
url = req.url?.toLowerCase().replace(".html","")
return res.redirect("/i#{url}")
2014-10-08 15:07:44 +00:00
getIndexPage: (req, res)->
2016-10-07 16:10:58 +00:00
return res.redirect("/i/university")
2016-06-06 08:28:53 +00:00