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

Method mountRoutes

src/Routers/ClassesRouter.js:237–253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235 }
236
237 mountRoutes() {
238 this.route('GET', '/classes/:className', req => {
239 return this.handleFind(req);
240 });
241 this.route('GET', '/classes/:className/:objectId', req => {
242 return this.handleGet(req);
243 });
244 this.route('POST', '/classes/:className', promiseEnsureIdempotency, req => {
245 return this.handleCreate(req);
246 });
247 this.route('PUT', '/classes/:className/:objectId', promiseEnsureIdempotency, req => {
248 return this.handleUpdate(req);
249 });
250 this.route('DELETE', '/classes/:className/:objectId', req => {
251 return this.handleDelete(req);
252 });
253 }
254}
255
256export default ClassesRouter;

Callers

nothing calls this directly

Calls 6

handleFindMethod · 0.95
handleGetMethod · 0.95
handleCreateMethod · 0.95
handleUpdateMethod · 0.95
handleDeleteMethod · 0.95
routeMethod · 0.80

Tested by

no test coverage detected