From d077f0f1d1547298f4e7998c2654ac3b870dec8c Mon Sep 17 00:00:00 2001 From: postables Date: Wed, 13 May 2020 20:03:33 -0700 Subject: [PATCH] api/v2: properly reference pin removal --- api/v2/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v2/api.go b/api/v2/api.go index 65f4242fd..eea211a4d 100644 --- a/api/v2/api.go +++ b/api/v2/api.go @@ -543,6 +543,7 @@ func (api *API) setupRoutes(debug bool) error { { pin.POST("/:hash", api.pinHashLocally) pin.POST("/:hash/extend", api.extendPin) + pin.DELETE("/remove/:hash", api.removePin) } // file upload routes file := public.Group("/file") @@ -586,7 +587,6 @@ func (api *API) setupRoutes(debug bool) error { { pin.POST("/:hash", api.pinToHostedIPFSNetwork) pin.GET("/check/:hash/:networkName", api.checkLocalNodeForPinForHostedIPFSNetwork) - pin.DELETE("/remove/:hash", api.removePin) } // file upload routes file := private.Group("/file")