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:
parent
e5f5314253
commit
277f4e2882
|
|
@ -36,8 +36,7 @@ func (c *NearestDeviceController) Route() {
|
|||
|
||||
nearestDevices.POST("/towers/search", c.getNearestTowers)
|
||||
nearestDevices.GET("/towers/:id", c.getNearestTowerByID)
|
||||
|
||||
nearestDevices.GET("/odp/search", c.getNearestODPDevices)
|
||||
// GET /odp/search removed — use POST /search with device_type="ODP"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue