remove legacy GET /odp/search endpoint

Endpoint duplikat ini membingungkan platform lain karena menggunakan
GET method sementara endpoint canonical POST /search sudah tersedia.
Platform lain (Flutter, web) cukup gunakan POST /search dengan
body parameter device_type="ODP".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
unknown 2026-04-19 11:00:38 +07:00
parent e5f5314253
commit 277f4e2882
1 changed files with 1 additions and 2 deletions

View File

@ -36,8 +36,7 @@ func (c *NearestDeviceController) Route() {
nearestDevices.POST("/towers/search", c.getNearestTowers) nearestDevices.POST("/towers/search", c.getNearestTowers)
nearestDevices.GET("/towers/:id", c.getNearestTowerByID) nearestDevices.GET("/towers/:id", c.getNearestTowerByID)
// GET /odp/search removed — use POST /search with device_type="ODP"
nearestDevices.GET("/odp/search", c.getNearestODPDevices)
} }
} }