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
d2a15ef3d4
commit
feec60fb35
@ -11,6 +11,8 @@ import (
|
||||
var no = 1
|
||||
|
||||
func main() {
|
||||
fmt.Println("Starting...")
|
||||
|
||||
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 {
|
||||
@ -27,5 +29,7 @@ func main() {
|
||||
|
||||
wasmhttp.Serve(nil)
|
||||
|
||||
fmt.Println("Started")
|
||||
|
||||
select {}
|
||||
}
|
||||
|
BIN
docs/api.wasm
BIN
docs/api.wasm
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user