diff --git a/pkg/transport-discovery/api/api.go b/pkg/transport-discovery/api/api.go index aeb22591..6ac2ac78 100644 --- a/pkg/transport-discovery/api/api.go +++ b/pkg/transport-discovery/api/api.go @@ -98,11 +98,11 @@ func New(log logrus.FieldLogger, s store.Store, nonceStore httpauth.NonceStore, r.Get("/transports/edge:{edge}", api.getTransportByEdge) r.Post("/transports/", api.registerTransport) r.Delete("/transports/id:{id}", api.deleteTransport) - r.Delete("/transports/deregister", api.deregisterTransport) }) r.Get("/health", api.health) r.Get("/all-transports", api.getAllTransports) + r.Delete("/transports/deregister", api.deregisterTransport) r.Post("/statuses", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusGone) })