From 08da692de65a9c11b128398a07731fdde7fdb6a5 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 20 Feb 2021 19:02:34 -0300 Subject: [PATCH] change path from /ws to /. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 37617ae..32c3955 100644 --- a/main.go +++ b/main.go @@ -40,7 +40,7 @@ func main() { db.Mapper = reflectx.NewMapperFunc("json", sqlx.NameMapper) // NIP01 - router.Path("/ws").Methods("GET").HandlerFunc(handleWebsocket) + router.Path("/").Methods("GET").HandlerFunc(handleWebsocket) srv := &http.Server{ Handler: cors.Default().Handler(router),