Skip to content

Commit

Permalink
http: add unixfs prefix to upload endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Nov 30, 2023
1 parent 0e28969 commit 4389bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (as *apiServer) handlePin(jc jape.Context) {
jc.Encode(c.String())
}

func (as *apiServer) handleUpload(jc jape.Context) {
func (as *apiServer) handleUnixFSUpload(jc jape.Context) {
body := jc.Request.Body
defer body.Close()

Expand Down Expand Up @@ -155,7 +155,7 @@ func NewAPIHandler(ipfs *ipfs.Node, sia *sia.Node, cfg config.Config, log *zap.L
return jape.Mux(map[string]jape.Handler{
"POST /api/cid/calculate": s.handleCalculate,
"POST /api/cid/verify/:cid": s.handleVerifyCID,
"POST /api/upload": s.handleUpload,
"POST /api/unixfs/upload": s.handleUnixFSUpload,
"POST /api/pin/:cid": s.handlePin,
})
}

0 comments on commit 4389bf4

Please sign in to comment.