Aktueller Stand
This commit is contained in:
9
backend/node_modules/find-my-way/lib/strategies/http-method.js
generated
vendored
9
backend/node_modules/find-my-way/lib/strategies/http-method.js
generated
vendored
@@ -3,12 +3,13 @@
|
||||
module.exports = {
|
||||
name: '__fmw_internal_strategy_merged_tree_http_method__',
|
||||
storage: function () {
|
||||
const handlers = {}
|
||||
const handlers = new Map()
|
||||
return {
|
||||
get: (type) => { return handlers[type] || null },
|
||||
set: (type, store) => { handlers[type] = store }
|
||||
get: (type) => { return handlers.get(type) || null },
|
||||
set: (type, store) => { handlers.set(type, store) }
|
||||
}
|
||||
},
|
||||
deriveConstraint: /* istanbul ignore next */ (req) => req.method,
|
||||
/* c8 ignore next 1 */
|
||||
deriveConstraint: (req) => req.method,
|
||||
mustMatchWhenDerived: true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user