feat: implement logout functionality

This commit is contained in:
2026-05-02 18:28:00 +02:00
committed by Mikkel Elvers
parent 79a5a9c2e6
commit d9ffa20d98
3 changed files with 26 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ func NewRouter(cfg Config) http.Handler {
pkgmiddleware.RateLimitAuth(pkgmiddleware.VerifyOrigin(http.HandlerFunc(authHandler.HandleLogin))).ServeHTTP(w, r)
}
})
mux.HandleFunc("/logout", authHandler.HandleLogout)
// Watchlist Endpoints
mux.HandleFunc("/api/watchlist/card", watchlistHandler.HandleCardWatchlist)