mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 17:36:38 +08:00
added comment to exported function
This commit is contained in:
@ -13,6 +13,7 @@ type ipfsHandler struct {
|
|||||||
node *core.IpfsNode
|
node *core.IpfsNode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Serve starts the http server
|
||||||
func Serve(address string, node *core.IpfsNode) error {
|
func Serve(address string, node *core.IpfsNode) error {
|
||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { ipfsPostHandler(w, r, node) }).Methods("POST")
|
r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { ipfsPostHandler(w, r, node) }).Methods("POST")
|
||||||
|
Reference in New Issue
Block a user