gpstracker/src/routes/index.ts
Fabio Manganiello 533ebe960f
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).
2025-03-01 11:45:13 +01:00

9 lines
209 B
TypeScript

import ApiRoutes from "./api";
import Routes from "./Routes";
class AllRoutes extends Routes {
private api: ApiRoutes = new ApiRoutes();
public routes = [...this.api.routes];
}
export default AllRoutes;