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

Method mountOnto

src/PromiseRouter.js:108–115  ·  view source on GitHub ↗
(expressApp)

Source from the content-addressed store, hash-verified

106
107 // Mount the routes on this router onto an express app (or express router)
108 mountOnto(expressApp) {
109 this.routes.forEach(route => {
110 const method = route.method.toLowerCase();
111 const handler = makeExpressHandler(this.appId, route.handler);
112 expressApp[method].call(expressApp, route.path, handler);
113 });
114 return expressApp;
115 }
116
117 expressRouter() {
118 return this.mountOnto(express.Router());

Callers 2

expressRouterMethod · 0.95
promiseRouterMethod · 0.80

Calls 1

makeExpressHandlerFunction · 0.85

Tested by

no test coverage detected