Location page displays city groups with all available concert locations

This commit is contained in:
2024-09-27 20:40:59 +02:00
parent ef0c48ae17
commit 513c73c5c1
36 changed files with 301 additions and 61 deletions

View File

@@ -0,0 +1,14 @@
import { Location } from "../models/acts/location.model";
import { City } from "../models/acts/city.model";
import { Request, Response, Router } from "express";
export const city = Router()
city.get("/", (req: Request, res: Response) => {
City.findAll({
include: [ Location ]
})
.then(cities => {
res.status(200).json(cities)
})
})