From 754da18c9900478c19665db5ca2764a097eb2874 Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Sun, 4 Feb 2024 10:27:46 -0600 Subject: [PATCH] actually use logout stuff --- main.go | 1 + site/src/App.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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