actually use logout stuff

This commit is contained in:
Branden J Brown 2024-02-04 10:27:46 -06:00
parent 6e6aca91f6
commit 754da18c99
2 changed files with 2 additions and 1 deletions

View File

@ -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)))

View File

@ -20,7 +20,7 @@
</v-row>
<v-row v-else-if="!loadingMe" class="d-flex justify-center">
<v-btn @click="clickPlay" class="mx-4" color="primary">Play</v-btn>
<v-btn class="mx-4">Log Out</v-btn>
<v-btn class="mx-4" href="/user/logout">Log Out</v-btn>
</v-row>
</v-container>
</v-main>