diff --git a/main.go b/main.go index 0e982a6..5b4c06c 100644 --- a/main.go +++ b/main.go @@ -50,6 +50,7 @@ func main() { r := chi.NewRouter() r.Post("/user/register", s.Register) r.Post("/user/login", s.Login) + r.With(serve.WithSession(db)).Get("/user/logout", s.Logout) r.With(serve.WithSession(db)).Get("/user/me", s.Me) r.With(serve.WithSession(db)).Get("/queue", s.Queue) r.With(middleware.Compress(5, "text/html", "text/javascript", "text/css")).Method("GET", "/*", http.FileServer(http.Dir(public))) diff --git a/site/src/App.vue b/site/src/App.vue index dd71389..f63b6f4 100644 --- a/site/src/App.vue +++ b/site/src/App.vue @@ -20,7 +20,7 @@ Play - Log Out + Log Out