|
@@ -10,17 +10,12 @@
|
|
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
|
|
*/
|
|
*/
|
|
|
const logger = require('logger-sharelatex')
|
|
const logger = require('logger-sharelatex')
|
|
|
-const Settings = require('@overleaf/settings')
|
|
|
|
|
const LaunchpadController = require('./LaunchpadController')
|
|
const LaunchpadController = require('./LaunchpadController')
|
|
|
const AuthenticationController = require('../../../../app/src/Features/Authentication/AuthenticationController')
|
|
const AuthenticationController = require('../../../../app/src/Features/Authentication/AuthenticationController')
|
|
|
const AuthorizationMiddleware = require('../../../../app/src/Features/Authorization/AuthorizationMiddleware')
|
|
const AuthorizationMiddleware = require('../../../../app/src/Features/Authorization/AuthorizationMiddleware')
|
|
|
|
|
|
|
|
module.exports = {
|
|
module.exports = {
|
|
|
apply(webRouter, apiRouter) {
|
|
apply(webRouter, apiRouter) {
|
|
|
- if (Settings.disableModule.launchpad) {
|
|
|
|
|
- logger.log({}, 'Skipping Init launchpad router')
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
logger.log({}, 'Init launchpad router')
|
|
logger.log({}, 'Init launchpad router')
|
|
|
|
|
|
|
|
webRouter.get('/launchpad', LaunchpadController.launchpadPage)
|
|
webRouter.get('/launchpad', LaunchpadController.launchpadPage)
|