3
0

8 Commits

Author SHA1 Message Date
Denis Arh
d74239c735 Improve HTTP server startup, add wrapping handler
HTTP server now initializes much earlier and mounts "waiting"
router with debugging, version and health check routes.

When server is fully activated it switches to "active"
router.

Shutdown stage is also handled with catch-all route.
2022-02-13 18:52:59 +01:00
Denis Arh
665a15093c Fix how errors are reported/masked 2022-01-21 15:31:09 +01:00
Denis Arh
3a9348500b Refactor lang loading, support sorting, enabling 2021-08-25 22:46:15 +02:00
Denis Arh
5d6945cec9 Add locale handling, translation dec/enc and serving 2021-08-23 19:10:21 +02:00
Denis Arh
10ef5b0df5 Improve how HTTP status on error is sent 2021-04-29 07:46:07 +02:00
Denis Arh
2586fb9c23 Properly handle/write response headers 2020-11-27 18:59:07 +01:00
Denis Arh
ed8fc547f7 Config. environment (throughenv var 'ENVIRONMENT') 2020-11-04 15:13:27 +01:00
Denis Arh
ecb7f52c31 Improve error creation & handling by API 2020-11-04 14:18:33 +01:00