mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
chore: lolisafe.js
This commit is contained in:
parent
fa9ca96d66
commit
5fd6685e44
@ -272,8 +272,12 @@ safe.use('/api', api)
|
|||||||
overrideContentTypes: config.overrideContentTypes,
|
overrideContentTypes: config.overrideContentTypes,
|
||||||
setContentDisposition: config.setContentDisposition
|
setContentDisposition: config.setContentDisposition
|
||||||
})
|
})
|
||||||
|
|
||||||
safe.get('/*', serveStaticInstance.handler)
|
safe.get('/*', serveStaticInstance.handler)
|
||||||
safe.head('/*', serveStaticInstance.handler)
|
safe.head('/*', serveStaticInstance.handler)
|
||||||
|
|
||||||
|
// Keep reference to internal SimpleDataStore in utils,
|
||||||
|
// allowing the rest of lolisafe to directly interface with it
|
||||||
utils.contentDispositionStore = serveStaticInstance.contentDispositionStore
|
utils.contentDispositionStore = serveStaticInstance.contentDispositionStore
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user