Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 13 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | const httpSuccessCode = 200; |
||
2 | |||
3 | export function health(req, res) { |
||
4 | res.sendStatus(httpSuccessCode); |
||
5 | } |
||
6 | |||
7 | export function router(routeTable, express, req, res) { |
||
8 | const requestType = req._context.aws; |
||
9 | const service = routeTable[requestType]; |
||
10 | const runner = express.makeServiceRunner(service); |
||
11 | |||
12 | return runner(req, res); |
||
13 | } |
||
14 |