Skip to content

Commit a2d90a9

Browse files
committed
Unexport private constant
I see no reason for it to be exported.
1 parent 7373db1 commit a2d90a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routing/http/server/server.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const (
5050
providePath = "/routing/v1/providers/"
5151
findProvidersPath = "/routing/v1/providers/{cid}"
5252
findPeersPath = "/routing/v1/peers/{peer-id}"
53-
GetIPNSPath = "/routing/v1/ipns/{cid}"
53+
getIPNSPath = "/routing/v1/ipns/{cid}"
5454
)
5555

5656
type FindProvidersAsyncResponse struct {
@@ -181,8 +181,8 @@ func Handler(svc ContentRouter, opts ...Option) http.Handler {
181181
r.Handle(findProvidersPath, middlewarestd.Handler(findProvidersPath, mdlw, http.HandlerFunc(server.findProviders))).Methods(http.MethodGet)
182182
r.Handle(providePath, middlewarestd.Handler(providePath, mdlw, http.HandlerFunc(server.provide))).Methods(http.MethodPut)
183183
r.Handle(findPeersPath, middlewarestd.Handler(findPeersPath, mdlw, http.HandlerFunc(server.findPeers))).Methods(http.MethodGet)
184-
r.Handle(GetIPNSPath, middlewarestd.Handler(GetIPNSPath, mdlw, http.HandlerFunc(server.GetIPNS))).Methods(http.MethodGet)
185-
r.Handle(GetIPNSPath, middlewarestd.Handler(GetIPNSPath, mdlw, http.HandlerFunc(server.PutIPNS))).Methods(http.MethodPut)
184+
r.Handle(getIPNSPath, middlewarestd.Handler(getIPNSPath, mdlw, http.HandlerFunc(server.GetIPNS))).Methods(http.MethodGet)
185+
r.Handle(getIPNSPath, middlewarestd.Handler(getIPNSPath, mdlw, http.HandlerFunc(server.PutIPNS))).Methods(http.MethodPut)
186186

187187
return r
188188
}

0 commit comments

Comments
 (0)