diff --git a/cmd/ipfs2/ipfsHandler.go b/cmd/ipfs2/ipfsHandler.go index b522607b0..07a64724a 100644 --- a/cmd/ipfs2/ipfsHandler.go +++ b/cmd/ipfs2/ipfsHandler.go @@ -22,6 +22,8 @@ type ipfs interface { NewDagReader(nd *dag.Node) (io.Reader, error) } +// ipfsHandler is a HTTP handler that serves IPFS objects (accessible by default at /ipfs/) +// (it serves requests like GET /ipfs/QmVRzPKPzNtSrEzBFm2UZfxmPAgnaLke4DMcerbsGGSaFe/link) type ipfsHandler struct { node *core.IpfsNode }