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

17 lines
399 B
CoffeeScript
Raw Normal View History

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