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

Method mountRoutes

src/Routers/UsersRouter.js:805–851  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

803 }
804
805 mountRoutes() {
806 this.route('GET', '/users', req => {
807 return this.handleFind(req);
808 });
809 this.route('POST', '/users', promiseEnsureIdempotency, req => {
810 return this.handleCreate(req);
811 });
812 this.route('GET', '/users/me', req => {
813 return this.handleMe(req);
814 });
815 this.route('GET', '/users/:objectId', req => {
816 return this.handleGet(req);
817 });
818 this.route('PUT', '/users/:objectId', promiseEnsureIdempotency, req => {
819 return this.handleUpdate(req);
820 });
821 this.route('DELETE', '/users/:objectId', req => {
822 return this.handleDelete(req);
823 });
824 this.route('GET', '/login', req => {
825 return this.handleLogIn(req);
826 });
827 this.route('POST', '/login', req => {
828 return this.handleLogIn(req);
829 });
830 this.route('POST', '/loginAs', req => {
831 return this.handleLogInAs(req);
832 });
833 this.route('POST', '/logout', req => {
834 return this.handleLogOut(req);
835 });
836 this.route('POST', '/requestPasswordReset', req => {
837 return this.handleResetRequest(req);
838 });
839 this.route('POST', '/verificationEmailRequest', req => {
840 return this.handleVerificationEmailRequest(req);
841 });
842 this.route('GET', '/verifyPassword', req => {
843 return this.handleVerifyPassword(req);
844 });
845 this.route('POST', '/verifyPassword', req => {
846 return this.handleVerifyPassword(req);
847 });
848 this.route('POST', '/challenge', req => {
849 return this.handleChallenge(req);
850 });
851 }
852}
853
854export default UsersRouter;

Callers

nothing calls this directly

Calls 14

handleMeMethod · 0.95
handleLogInMethod · 0.95
handleLogInAsMethod · 0.95
handleLogOutMethod · 0.95
handleResetRequestMethod · 0.95
handleVerifyPasswordMethod · 0.95
handleChallengeMethod · 0.95
routeMethod · 0.80
handleCreateMethod · 0.80
handleFindMethod · 0.45
handleGetMethod · 0.45

Tested by

no test coverage detected