More server stability

This commit is contained in:
2024-11-28 12:29:36 +01:00
parent fd2a2dd345
commit feca0934a3
8 changed files with 56 additions and 29 deletions

View File

@@ -35,6 +35,9 @@ concert.get("/", (req: Request, res: Response) => {
res.status(200).json(concerts)
})
.catch(error => {
res.status(500).send()
})
})
@@ -154,4 +157,7 @@ concert.get("/search", (req: Request, res: Response) => {
.then(concerts => {
res.status(200).json(concerts)
})
.catch(error => {
res.status(500).send()
})
})