This commit is contained in:
Nicolas Lepage
2021-01-21 23:44:52 +01:00
parent 229ad21880
commit 272c6d8876
2 changed files with 2 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ import (
)
func main() {
defer fmt.Println("api stopping...")
http.HandleFunc("/hello", func(res http.ResponseWriter, req *http.Request) {
params := make(map[string]string)
if err := json.NewDecoder(req.Body).Decode(&params); err != nil {

Binary file not shown.