1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-09 00:00:05 +01:00

Less debug, use "protocols" as in Barry's API design.

This commit is contained in:
Michael Cardell Widerkrantz 2016-10-23 18:08:47 +02:00
parent 1da50a7178
commit d9a1888530

View file

@ -2,7 +2,6 @@ package main
import (
"encoding/json"
"fmt"
"net/http"
"github.com/julienschmidt/httprouter"
@ -19,9 +18,7 @@ func Protocols(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
return
}
res["data"] = pattern("getprotocol", lines)
fmt.Printf(">>>>>>>>>>>>>>>> data: %v\n", res["data"])
res["protocols"] = pattern("getprotocol", lines)
js, _ := json.Marshal(res)