From addb4c20bfbf6930d12a61832d82e6f5ed6f68cc Mon Sep 17 00:00:00 2001 From: MohammadReza Palide Date: Mon, 8 Jan 2024 06:57:52 +0000 Subject: [PATCH] move deregister endpoint out of nonce needed scope --- pkg/transport-discovery/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) })