implemented login logic

This commit is contained in:
2026-03-11 19:23:58 +01:00
parent ebfe80133c
commit 744dd7f42d
6 changed files with 106 additions and 15 deletions
+2
View File
@@ -36,5 +36,7 @@ func main() {
http.Handle("/ws", srv)
log.Println("server listening on :8080")
http.HandleFunc("POST /register", RegisterHandler)
http.HandleFunc("POST /login", LoginHandler)
log.Fatal(http.ListenAndServe(":8080", nil))
}