Fix deploy endpoint not being reachable with deploy token

This commit is contained in:
2026-05-04 18:08:11 +02:00
parent a1234158fe
commit 087aa01876
+2 -2
View File
@@ -60,11 +60,11 @@ func Register(app *fiber.App, cfg *config.Config, envCfg *envconfig.EnvConfig, d
authHandler := handlers.NewAuthHandler(userRepository)
public.Post("/login", authHandler.Login)
public.Post("/deploy", deploySiteHandler.PostDeploy)
// Protected routes - require auth for everything by default
protected := api.Group("", middleware.RequireAuth())
protected.Post("/deploy", deploySiteHandler.PostDeploy)
// Sites
protected.Get("/sites", siteHandler.GetSites)
protected.Get("/sites/:id", siteHandler.GetSite)