This commit is contained in:
parent
aa245d4877
commit
9c84c3dff1
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -13,7 +13,8 @@ func main() {
|
||||||
var p interface{}
|
var p interface{}
|
||||||
err := json.NewDecoder(request.Body).Decode(&p)
|
err := json.NewDecoder(request.Body).Decode(&p)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "Somethuing go wrong"
|
writer.WriteHeader(http.StatusInternalServerError)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
fmt.Println(p)
|
fmt.Println(p)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue