mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 17:03:58 +08:00
cmd/ipfs2: Added explanation comment to ipfsHandler
This commit is contained in:

committed by
Juan Batiz-Benet

parent
4902361fd5
commit
aea2fce987
@ -22,6 +22,8 @@ type ipfs interface {
|
|||||||
NewDagReader(nd *dag.Node) (io.Reader, error)
|
NewDagReader(nd *dag.Node) (io.Reader, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ipfsHandler is a HTTP handler that serves IPFS objects (accessible by default at /ipfs/<path>)
|
||||||
|
// (it serves requests like GET /ipfs/QmVRzPKPzNtSrEzBFm2UZfxmPAgnaLke4DMcerbsGGSaFe/link)
|
||||||
type ipfsHandler struct {
|
type ipfsHandler struct {
|
||||||
node *core.IpfsNode
|
node *core.IpfsNode
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user