fix first critical issiue

This commit is contained in:
2026-03-27 16:06:23 +01:00
parent a6a19dad6e
commit a95bc43be6
4 changed files with 134 additions and 16 deletions
+17 -1
View File
@@ -1,5 +1,21 @@
package main
func main() {
import (
"context"
"log"
"net/http"
)
func main() {
ctx := context.Background()
DbInit(ctx)
http.HandleFunc("/newuser", HttpHandleNewUser)
http.HandleFunc("/login", HttpHandleLogin)
http.HandleFunc("/group/create", HttpHandleGroupCreate)
http.HandleFunc("/group/addclient", HttpHandleGroupAddClient)
http.HandleFunc("/ws", ServeWsConnection)
log.Println("listening on :8080")
log.Fatal(http.ListenAndServe(":8080", nil))
}