Bulk commit: November work
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user