Improve filterBar on eventsPage, improve API access from frontend

This commit is contained in:
2024-10-03 19:56:44 +02:00
parent 2b7e87a68d
commit c611cc04fc
27 changed files with 170 additions and 164 deletions

View File

@@ -6,14 +6,7 @@ import { Request, Response, Router } from "express";
export const genre = Router()
genre.get("/", (req: Request, res: Response) => {
Genre.findAll({
include: [
{
model: Band,
include: [ Rating ]
}
]
})
Genre.findAll()
.then(genres => {
res.status(200).json(genres)
})