disable legacy endpoint

This commit is contained in:
Annika Hannig 2024-01-26 14:19:02 +01:00
parent f72c4a3518
commit dff2773826
2 changed files with 4 additions and 2 deletions

View File

@ -104,8 +104,8 @@ func (s *Server) apiRegisterEndpoints(
endpoint(s.apiRouteServerStatusShow))
router.GET("/api/v1/routeservers/:id/neighbors",
endpoint(s.apiNeighborsList))
router.GET("/api/v1/routeservers/:id/neighbors/:neighborId/routes",
endpoint(s.apiRoutesList))
// router.GET("/api/v1/routeservers/:id/neighbors/:neighborId/routes",
// endpoint(s.apiRoutesList))
router.GET("/api/v1/routeservers/:id/neighbors/:neighborId/routes/received",
endpoint(s.apiRoutesListReceived))
router.GET("/api/v1/routeservers/:id/neighbors/:neighborId/routes/filtered",

View File

@ -11,6 +11,7 @@ import (
)
// Handle routes
/*
func (s *Server) apiRoutesList(
ctx context.Context,
_req *http.Request,
@ -34,6 +35,7 @@ func (s *Server) apiRoutesList(
return result, err
}
*/
// Paginated Routes Respponse: Received routes
func (s *Server) apiRoutesListReceived(