actually use logout stuff
This commit is contained in:
parent
6e6aca91f6
commit
754da18c99
1
main.go
1
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)))
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user