provide files for viewing of uploaded files to inspection points
This commit is contained in:
parent
98ce39efc5
commit
9a1bf6dfde
3 changed files with 56 additions and 0 deletions
|
@ -11,6 +11,7 @@ import {
|
|||
updateInspectionResults,
|
||||
getInspectionPrintoutById,
|
||||
finishInspection,
|
||||
getInspectionPointUpload,
|
||||
} from "../../../controller/admin/unit/inspectionController";
|
||||
import { inspectionFileUpload } from "../../../middleware/multer";
|
||||
|
||||
|
@ -47,6 +48,10 @@ router.get("/:id/printout", async (req: Request, res: Response) => {
|
|||
await getInspectionPrintoutById(req, res);
|
||||
});
|
||||
|
||||
router.get("/:id/:pointId/upload", async (req: Request, res: Response) => {
|
||||
await getInspectionPointUpload(req, res);
|
||||
});
|
||||
|
||||
router.post(
|
||||
"/",
|
||||
PermissionHelper.passCheckMiddleware("create", "unit", "inspection"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue