overleaf/services/web/app/src/Features/StaticPages/StaticPagesRouter.js
Alasdair Smith f83ab4ec3b Merge pull request #1767 from overleaf/as-color-contrast
Improve colour contrast

GitOrigin-RevId: 56796839e5c2e741e85bc849399cb28d3db36976
2019-06-19 09:01:43 +00:00

56 lines
1.7 KiB
JavaScript

/* eslint-disable
max-len,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const HomeController = require('./HomeController')
const UniversityController = require('./UniversityController')
module.exports = {
apply(webRouter, apiRouter) {
webRouter.get('/', HomeController.index)
webRouter.get('/home', HomeController.home)
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')
)
webRouter.get('/jobs', HomeController.externalPage('jobs', 'Jobs'))
webRouter.get(
'/track-changes-and-comments-in-latex',
HomeController.externalPage('review-features-page', 'Review features')
)
webRouter.get(
'/dropbox',
HomeController.externalPage('dropbox', 'Dropbox and ShareLaTeX')
)
webRouter.get('/university', UniversityController.getIndexPage)
return webRouter.get('/university/*', UniversityController.getPage)
}
}