change path from /ws to /.

This commit is contained in:
fiatjaf 2021-02-20 19:02:34 -03:00
parent db384be3f9
commit 08da692de6

View File

@ -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),