Improve filterBar on eventsPage, improve API access from frontend
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user