Projektstart
This commit is contained in:
14
backend/node_modules/find-my-way/lib/strategies/http-method.js
generated
vendored
Normal file
14
backend/node_modules/find-my-way/lib/strategies/http-method.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
name: '__fmw_internal_strategy_merged_tree_http_method__',
|
||||
storage: function () {
|
||||
const handlers = {}
|
||||
return {
|
||||
get: (type) => { return handlers[type] || null },
|
||||
set: (type, store) => { handlers[type] = store }
|
||||
}
|
||||
},
|
||||
deriveConstraint: /* istanbul ignore next */ (req) => req.method,
|
||||
mustMatchWhenDerived: true
|
||||
}
|
||||
Reference in New Issue
Block a user