Bulk commit: November work

This commit is contained in:
2025-11-06 11:46:35 +01:00
parent cf82dede3b
commit 183875baf4
60 changed files with 16590 additions and 102 deletions

View File

@ -14,11 +14,12 @@ type firmaRouter struct {
func RegisterFirmaRouter(group fiber.Router, appCtx utils.Application) {
router := &firmaRouter{Application: appCtx}
group.Post("/new", router.createFirma)
group.Get("/all", router.getAllFirmen)
group.Get("/:id<int>", router.getFirma)
group.Put("/:id<int>", router.updateFirma)
group.Delete("/:id<int>", router.deleteFirma)
r := group.Use(utils.IsAuthenticated(appCtx))
r.Post("/new", router.createFirma)
r.Get("/all", router.getAllFirmen)
r.Get("/:id<int>", router.getFirma)
r.Put("/:id<int>", router.updateFirma)
r.Delete("/:id<int>", router.deleteFirma)
}
func (r *firmaRouter) createFirma(c *fiber.Ctx) error {