added comment to exported function
verokarhu committed
Aug 6, 2014 at 20:17 UTC
6338cac23ef4ccdba25800e166fff00f3ff4ab34
1 file changed
+1
http/http.go
+1
@@ -13,6 +13,7 @@ type ipfsHandler struct {
13
node *core.IpfsNode
14
}
15
16
+// Serve starts the http server
17
func Serve(address string, node *core.IpfsNode) error {
18
r := mux.NewRouter()
19
r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { ipfsPostHandler(w, r, node) }).Methods("POST")