mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2025-03-10 17:29:10 +00:00
⚗️
This commit is contained in:
parent
229ad21880
commit
272c6d8876
@ -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(¶ms); err != nil {
|
||||
|
BIN
docs/api.wasm
BIN
docs/api.wasm
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user