Changed endpoint to /api/v1/regions/:id/nearby
This commit is contained in:
parent
5b4ef3c794
commit
e948243417
@ -37,19 +37,19 @@ module.exports = dbConn => {
|
||||
res.json(await handleRegionLonLat(dbConn))
|
||||
});
|
||||
|
||||
router.get("/api/v1/regions/nearby/:id", async (req,res) => {
|
||||
router.get("/api/v1/regions/:id/nearby", async (req,res) => {
|
||||
res.json(await getRegionNearbyById(dbConn,req.params.id))
|
||||
});
|
||||
|
||||
router.patch("/api/v1/regions/nearby/update", async (req,res) => {
|
||||
router.patch("/api/v1/regions/update/nearby", async (req,res) => {
|
||||
res.json(await handleUpdateRegionNearby(dbConn))
|
||||
});
|
||||
|
||||
router.patch("/api/v1/regions/nearby/update/:id", async (req,res) => {
|
||||
router.patch("/api/v1/regions/update/nearby/:id", async (req,res) => {
|
||||
res.json(await handleUpdateRegionNearbyById(dbConn, req.params.id))
|
||||
});
|
||||
|
||||
router.patch("/api/v1/regions/nearby/imgurl/update", async (req,res) => {
|
||||
router.patch("/api/v1/regions/update/nearby_imgurl", async (req,res) => {
|
||||
res.json(await handleUpdateRegionNearbyImgUrl(dbConn))
|
||||
});
|
||||
return router;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user