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

Method mountRoutes

src/Routers/FunctionsRouter.js:65–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63
64export class FunctionsRouter extends PromiseRouter {
65 mountRoutes() {
66 this.route(
67 'POST',
68 '/functions/:functionName',
69 promiseEnsureIdempotency,
70 FunctionsRouter.multipartMiddleware,
71 FunctionsRouter.handleCloudFunction
72 );
73 this.route(
74 'POST',
75 '/jobs/:jobName',
76 promiseEnsureIdempotency,
77 promiseEnforceMasterKeyAccess,
78 function (req) {
79 return FunctionsRouter.handleCloudJob(req);
80 }
81 );
82 this.route('POST', '/jobs', promiseEnforceMasterKeyAccess, function (req) {
83 return FunctionsRouter.handleCloudJob(req);
84 });
85 }
86
87 static handleCloudJob(req) {
88 if (req.auth.isReadOnly) {

Callers

nothing calls this directly

Calls 2

routeMethod · 0.80
handleCloudJobMethod · 0.80

Tested by

no test coverage detected