provide files for viewing of uploaded files to inspection points

This commit is contained in:
Julian Krauser 2025-07-12 17:04:29 +02:00
parent 98ce39efc5
commit 9a1bf6dfde
3 changed files with 56 additions and 0 deletions

View file

@ -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"),