Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api): refactor request handling; fix
Allow
header
This commit refactors the handling of requests in the API. All endpoints are added as functions to a table. A new `response` table is introduced. Every endpoint function returns such response. This allows for more generic request handling, while offering even more customizability per request. As a side effect, the `Allow:` header now contains the correct methods instead of hardcoded `GET,POST`.
- Loading branch information