feat: set user input related header in public route requests to identify schema fix: small fixes
8 lines
233 B
JavaScript
8 lines
233 B
JavaScript
const { asyncLocalStorage, defaultStore } = require('./async-storage')
|
|
|
|
const computeSchema = (req, res, next) => {
|
|
const store = defaultStore()
|
|
return asyncLocalStorage.run(store, () => next())
|
|
}
|
|
|
|
module.exports = computeSchema
|