Add /api/v1/register and /api/v1/login routes

This commit is contained in:
2026-02-27 04:55:40 -08:00
parent b8794c2587
commit 3cd942ffa5

View File

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