Bulk commit: November work
This commit is contained in:
@ -15,9 +15,10 @@ type mandantRouter struct {
|
||||
func RegisterMandantRouter(group fiber.Router, appCtx utils.Application) {
|
||||
router := &mandantRouter{currentMandant: 1, Application: appCtx}
|
||||
|
||||
group.Get("/current", router.getCurrentMandant)
|
||||
group.Put("/current", router.setCurrentMandant)
|
||||
group.Get("/all", router.getAllMandant)
|
||||
r := group.Use(utils.IsAuthenticated(appCtx))
|
||||
r.Get("/current", router.getCurrentMandant)
|
||||
r.Put("/current", router.setCurrentMandant)
|
||||
r.Get("/all", router.getAllMandant)
|
||||
}
|
||||
|
||||
func (r *mandantRouter) getCurrentMandant(c *fiber.Ctx) error {
|
||||
|
||||
Reference in New Issue
Block a user