diff --git a/src/routes/createUnitRoutes.ts b/src/routes/createUnitRoutes.ts index d30dc5e..caeadc9 100644 --- a/src/routes/createUnitRoutes.ts +++ b/src/routes/createUnitRoutes.ts @@ -13,7 +13,7 @@ const createUnitRouter = express.Router(); // Rota protegida para criar unidades dentro da empresa do administrador createUnitRouter.post( - '/create-unit', + '/units', authenticate, authorize(['ADMIN']), createUnitInCompany