Add frontend #1

Merged
KartoffelChipss merged 50 commits from feature/frontend into main 2026-05-06 20:16:59 +02:00
Showing only changes of commit 087aa01876 - Show all commits
+2 -2
View File
@@ -60,11 +60,11 @@ func Register(app *fiber.App, cfg *config.Config, envCfg *envconfig.EnvConfig, d
authHandler := handlers.NewAuthHandler(userRepository) authHandler := handlers.NewAuthHandler(userRepository)
public.Post("/login", authHandler.Login) public.Post("/login", authHandler.Login)
public.Post("/deploy", deploySiteHandler.PostDeploy)
// Protected routes - require auth for everything by default // Protected routes - require auth for everything by default
protected := api.Group("", middleware.RequireAuth()) protected := api.Group("", middleware.RequireAuth())
protected.Post("/deploy", deploySiteHandler.PostDeploy)
// Sites // Sites
protected.Get("/sites", siteHandler.GetSites) protected.Get("/sites", siteHandler.GetSites)
protected.Get("/sites/:id", siteHandler.GetSite) protected.Get("/sites/:id", siteHandler.GetSite)