MCPcopy
hub / github.com/parse-community/parse-server / mountRoutes

Method mountRoutes

src/Routers/SessionsRouter.js:115–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 }
114
115 mountRoutes() {
116 this.route('GET', '/sessions/me', req => {
117 return this.handleMe(req);
118 });
119 this.route('GET', '/sessions', req => {
120 return this.handleFind(req);
121 });
122 this.route('GET', '/sessions/:objectId', req => {
123 return this.handleGet(req);
124 });
125 this.route('POST', '/sessions', req => {
126 return this.handleCreate(req);
127 });
128 this.route('PUT', '/sessions/:objectId', req => {
129 return this.handleUpdate(req);
130 });
131 this.route('DELETE', '/sessions/:objectId', req => {
132 return this.handleDelete(req);
133 });
134 this.route('POST', '/upgradeToRevocableSession', req => {
135 return this.handleUpdateToRevocableSession(req);
136 });
137 }
138}
139
140export default SessionsRouter;

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected