Add frontend #1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user