mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-03-18 05:42:19 +01:00
change path from /ws to /.
This commit is contained in:
parent
db384be3f9
commit
08da692de6
2
main.go
2
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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user