mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2026-01-12 01:59:14 +00:00
⚗️
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user