1
0
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:
verokarhu
2014-08-06 20:17:21 +03:00
parent e4941069ef
commit 6338cac23e

View File

@ -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")