From fdc3ca101c503989f15387f68bc40d4eb442b2fe Mon Sep 17 00:00:00 2001 From: qowevisa Date: Wed, 6 Nov 2024 19:43:20 +0200 Subject: [PATCH] Add /api/authping endpoint --- cmd/http-server/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/http-server/main.go b/cmd/http-server/main.go index 7475a08..28b34d9 100644 --- a/cmd/http-server/main.go +++ b/cmd/http-server/main.go @@ -44,6 +44,7 @@ func main() { api := r.Group("/api") { api.GET("/ping", handlers.PingGet) + api.GET("/authping", middleware.AuthMiddleware(), handlers.PingGet) userRoutes := api.Group("/user") { userRoutes.POST("/register", handlers.UserRegister)