| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | export default class Backend { |
||
| 2 | constructor() { |
||
| 3 | this.routes = []; |
||
| 4 | this.security = []; |
||
| 5 | } |
||
| 6 | |||
| 7 | register(operationId, handler) { |
||
| 8 | this.routes.push({ |
||
| 9 | operationId, |
||
| 10 | handler, |
||
| 11 | }); |
||
| 12 | } |
||
| 13 | |||
| 14 | registerSecurityHandler(name, handler) { |
||
| 15 | this.security.push({ |
||
| 16 | name, |
||
| 17 | handler, |
||
| 18 | }); |
||
| 19 | } |
||
| 20 | |||
| 21 | init() {} |
||
| 22 | } |
||
| 23 |