()
| 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 | |
| 854 | export default UsersRouter; |
nothing calls this directly
no test coverage detected