This commit is contained in:
2025-08-26 13:51:15 -04:00
parent e1c7e825af
commit 39e850f8ac
6 changed files with 705 additions and 19 deletions

View File

@ -185,7 +185,8 @@ func setupRouter(cfg config.ConfigProvider, logger *zap.Logger, healthHandler *h
api := router.Group("/api")
{
// Authentication endpoints (no prior auth required)
api.POST("/login", authHandler.Login)
api.GET("/login", authHandler.Login) // HTML page for browser access
api.POST("/login", authHandler.Login) // JSON API for programmatic access
api.POST("/verify", authHandler.Verify)
api.POST("/renew", authHandler.Renew)