Files
simple-mail-cleaner/backend/node_modules/find-my-way/lib/strategies/http-method.js
2026-01-22 15:49:12 +01:00

15 lines
377 B
JavaScript

'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
}