fix first critical issiue
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user