chore: lolisafe.js

This commit is contained in:
Bobby 2022-07-30 07:53:38 +07:00
parent fa9ca96d66
commit 5fd6685e44
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09

View File

@ -272,8 +272,12 @@ safe.use('/api', api)
overrideContentTypes: config.overrideContentTypes,
setContentDisposition: config.setContentDisposition
})
safe.get('/*', 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
}