Documenting, restructure and expand API

This commit is contained in:
2024-09-13 12:07:33 +02:00
parent 5134a9df31
commit a254f99404
13 changed files with 877 additions and 74 deletions

View File

@@ -4,7 +4,7 @@ import { deleteAllTables, prepopulateDatabase } from '../scripts/databaseHelper'
export const api = Router()
api.get("/", (req: Request, res: Response, next: NextFunction) => {
res.send("Hello World!")
res.status(200).send()
})
api.get("/resetdatabase", (req: Request, res: Response, next: NextFunction) => {