MCPcopy Index your code
hub / github.com/parse-community/parse-server / allowMethodOverride

Function allowMethodOverride

src/middlewares.js:437–446  ·  view source on GitHub ↗
(req, res, next)

Source from the content-addressed store, hash-verified

435}
436
437export function allowMethodOverride(req, res, next) {
438 if (req.method === 'POST' && req.body?._method) {
439 if (typeof req.body._method === 'string') {
440 req.originalMethod = req.method;
441 req.method = req.body._method.toUpperCase();
442 }
443 delete req.body._method;
444 }
445 next();
446}
447
448async function resolveKeyAuth({ config, keyValue, maintenanceKeyValue, installationId, clientIp }) {
449 if (maintenanceKeyValue && maintenanceKeyValue === config.maintenanceKey) {

Callers

nothing calls this directly

Calls 1

nextFunction · 0.85

Tested by

no test coverage detected