change according to connection from frontend
This commit is contained in:
parent
2609ecc1bf
commit
e3db523a0e
36 changed files with 611 additions and 173 deletions
|
@ -40,6 +40,7 @@ import wearable from "./unit/wearable";
|
|||
import wearableType from "./unit/wearableType";
|
||||
import inspection from "./unit/inspection";
|
||||
import inspectionPlan from "./unit/inspectionPlan";
|
||||
import damageReport from "./unit/damageReport";
|
||||
|
||||
var router = express.Router({ mergeParams: true });
|
||||
|
||||
|
@ -215,5 +216,15 @@ router.use(
|
|||
]),
|
||||
inspectionPlan
|
||||
);
|
||||
router.use(
|
||||
"/damagereport",
|
||||
PermissionHelper.passCheckSomeMiddleware([
|
||||
{ requiredPermission: "read", section: "unit", module: "damage_report" },
|
||||
{ requiredPermission: "read", section: "unit", module: "equipment" },
|
||||
{ requiredPermission: "read", section: "unit", module: "vehicle" },
|
||||
{ requiredPermission: "read", section: "unit", module: "wearable" },
|
||||
]),
|
||||
damageReport
|
||||
);
|
||||
|
||||
export default router;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue