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