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:
parent
1da50a7178
commit
d9a1888530
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue