Commit 6338cac2 authored by verokarhu's avatar verokarhu

added comment to exported function

parent e4941069
...@@ -13,6 +13,7 @@ type ipfsHandler struct { ...@@ -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")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment