From 0deb98a7274f1dcba9a82f644e7f3cc700a9bb96 Mon Sep 17 00:00:00 2001 From: Hannes Date: Wed, 17 Jul 2024 03:50:10 +0200 Subject: [PATCH] vingo: pieter post pieter post pieter post verdient de kost (met zijn post) --- vingo/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vingo/main.go b/vingo/main.go index a150e6c..73e5d8d 100644 --- a/vingo/main.go +++ b/vingo/main.go @@ -34,13 +34,14 @@ func main() { })) // Public routes - public.Get("/login", handlers.Login) + public.Post("/login", handlers.Login) public.Get("/auth/callback", handlers.Callback) public.Post("/scans", handlers.ScanRegister) api := public.Group("/api", handlers.IsLoggedIn) { + api.Post("/logout", handlers.Logout) api.Get("/user", handlers.User) api.Get("/leaderboard", handlers.Leaderboard) api.Get("/scans", handlers.Scans)