feat: password-based registration and login (closes #1) #23

Merged
sneak merged 7 commits from feature/auth-passwords into main 2026-02-28 19:57:41 +01:00
Showing only changes of commit 3cd942ffa5 - Show all commits

View File

@@ -70,6 +70,14 @@ func (srv *Server) SetupRoutes() {
"/session", "/session",
srv.handlers.HandleCreateSession(), srv.handlers.HandleCreateSession(),
) )
router.Post(
"/register",
srv.handlers.HandleRegister(),
)
router.Post(
"/login",
srv.handlers.HandleLogin(),
)
router.Get( router.Get(
"/state", "/state",
srv.handlers.HandleState(), srv.handlers.HandleState(),