fix: back add cors
Some checks failed
Build Docker Image Front / run (pull_request) Successful in 25s
Build Docker Image Back / run (pull_request) Successful in 1m8s
JsDocs / coverage (pull_request) Successful in 40s
Test and coverage / coverage (pull_request) Failing after 1m44s

This commit is contained in:
2024-05-22 14:38:44 +02:00
parent aae4f97ff4
commit 3d9e2b1977
4 changed files with 30 additions and 3 deletions

View File

@ -135,8 +135,9 @@ export async function getCity(req: express.Request, res: express.Response) {
radius = "1000"
}
const cityPose = await callCity(cityName as string)
res.send( await callRadius(cityPose.lon,cityPose.lat, radius as string))
}
const poi = await callRadius(cityPose.lon,cityPose.lat, radius as string)
res.send( {...poi, ...cityPose})
}//XXX: refaire test avec city
/**
* Handle GET request for radius search route ('/otm/radius').