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

Method applyRequestContextMiddleware

src/ParseServer.ts:288–295  ·  view source on GitHub ↗

* @static * Allow developers to customize each request with inversion of control/dependency injection

(api, options)

Source from the content-addressed store, hash-verified

286 * Allow developers to customize each request with inversion of control/dependency injection
287 */
288 static applyRequestContextMiddleware(api, options) {
289 if (options.requestContextMiddleware) {
290 if (typeof options.requestContextMiddleware !== 'function') {
291 throw new Error('requestContextMiddleware must be a function');
292 }
293 api.use(options.requestContextMiddleware);
294 }
295 }
296 /**
297 * @static
298 * Create an express app for the parse server

Callers 1

appMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected