Refactored backend.

- Add versioning to API endpoints.
- Refactored $db and $repos as global variables.
- Extracted routes into separate components with deferred registration.
- Support for a different db URL for location data than the one used by
  the application.
- Added sqlite and passport dependencies (passport will soon be used to
  handle authentication).
This commit is contained in:
Fabio Manganiello 2025-03-01 11:45:13 +01:00
parent f349b2c5be
commit 533ebe960f
Signed by: blacklight
GPG key ID: D90FBA7F76362774
26 changed files with 1853 additions and 146 deletions

3
src/types.ts Normal file
View file

@ -0,0 +1,3 @@
type Optional<T> = T | null | undefined;
export { Optional };