Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Commit

Permalink
api/v2: properly reference pin removal
Browse files Browse the repository at this point in the history
  • Loading branch information
postables committed May 14, 2020
1 parent cc6c6cd commit d077f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v2/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit d077f0f

Please sign in to comment.