diff --git a/backend/app/routes/routes.go b/backend/app/routes/routes.go index ca191ad..7504ecd 100644 --- a/backend/app/routes/routes.go +++ b/backend/app/routes/routes.go @@ -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)