mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #6570 from overleaf/revert-6352-tm-dropbox-webhook-signature-verification
Revert "Add dropbox webhook signature verification and decaf cleanup" GitOrigin-RevId: eb1fab093d7979a010700f0bc3e1e696f3cba6ae
This commit is contained in:
parent
bbb97bed26
commit
347649ebaa
2 changed files with 0 additions and 10 deletions
|
@ -81,14 +81,6 @@ function loadViewIncludes(app) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function registerAppMiddleware(app) {
|
|
||||||
for (const module of _modules) {
|
|
||||||
if (module.appMiddleware) {
|
|
||||||
module.appMiddleware(app)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function moduleIncludes(view, locals) {
|
function moduleIncludes(view, locals) {
|
||||||
const compiledPartials = _viewIncludes[view] || []
|
const compiledPartials = _viewIncludes[view] || []
|
||||||
let html = ''
|
let html = ''
|
||||||
|
@ -152,7 +144,6 @@ module.exports = {
|
||||||
loadViewIncludes,
|
loadViewIncludes,
|
||||||
moduleIncludes,
|
moduleIncludes,
|
||||||
moduleIncludesAvailable,
|
moduleIncludesAvailable,
|
||||||
registerAppMiddleware,
|
|
||||||
hooks: {
|
hooks: {
|
||||||
attach: attachHook,
|
attach: attachHook,
|
||||||
fire: fireHook,
|
fire: fireHook,
|
||||||
|
|
|
@ -132,7 +132,6 @@ app.set('views', Path.join(__dirname, '/../../views'))
|
||||||
app.set('view engine', 'pug')
|
app.set('view engine', 'pug')
|
||||||
Modules.loadViewIncludes(app)
|
Modules.loadViewIncludes(app)
|
||||||
|
|
||||||
Modules.registerAppMiddleware(app)
|
|
||||||
app.use(bodyParser.urlencoded({ extended: true, limit: '2mb' }))
|
app.use(bodyParser.urlencoded({ extended: true, limit: '2mb' }))
|
||||||
app.use(bodyParser.json({ limit: Settings.max_json_request_size }))
|
app.use(bodyParser.json({ limit: Settings.max_json_request_size }))
|
||||||
app.use(methodOverride())
|
app.use(methodOverride())
|
||||||
|
|
Loading…
Reference in a new issue