This commit is contained in:
Lizandro Guarnizo
2026-05-01 10:28:22 -05:00
parent caec7bb5e8
commit 88c65cd405
2 changed files with 28 additions and 6 deletions
+1 -6
View File
@@ -21,12 +21,7 @@ func UserRoutes(app fiber.Router) {
protected.Get("/web", func(c *fiber.Ctx) error { return c.Redirect("/", http.StatusSeeOther) })
app.Get("/web", func(c *fiber.Ctx) error { return c.Redirect("/", http.StatusSeeOther) })
protected.Get("/", controllers.App)
protected.Get("/me", controllers.Me)
// Rutas de módulos
protected.Get("/modules", middlewares.MenuMiddleware, controllers.Modules) // Renderizar la vista
protected.Get("/loadmodules", controllers.GetModules) // Obtener todos los módulos
protected.Post("/modules", controllers.CreateModule) // Crear un nuevo módulo
protected.Get("/dashboard", middlewares.MenuMiddleware, controllers.Dashboard)
protected.Put("/modules/:id", controllers.UpdateModule) // Actualizar un módulo existente
protected.Delete("/modules/:id", controllers.DeleteModule) // Eliminar un módulo