replace python django backend with nodejs backend

This commit is contained in:
wea_ondara
2024-05-27 18:59:58 +02:00
parent ebd0748894
commit 8b60d023e8
123 changed files with 15193 additions and 88 deletions

10
backend/src/routes.ts Normal file
View File

@@ -0,0 +1,10 @@
import {Express, static as _static} from 'express';
import type {ConfigType} from './config/confighelper';
import catchAllRedirect from './middleware/CatchAllRedirect';
import {RegisterRoutes} from './tsoa.gen/routes';
export function registerRoutes(express: Express, config: ConfigType) {
RegisterRoutes(express);
express.use(_static('_client')); //for production
express.use(catchAllRedirect(express, '/'));
}