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