enable public report
This commit is contained in:
parent
8f563d1058
commit
41c3093754
21 changed files with 307 additions and 19 deletions
|
@ -1,13 +1,16 @@
|
|||
import express from "express";
|
||||
import {
|
||||
checkScannerRoomExists,
|
||||
createDamageReport,
|
||||
getApplicationConfig,
|
||||
getApplicationFavicon,
|
||||
getApplicationIcon,
|
||||
getApplicationLogo,
|
||||
getApplicationManifest,
|
||||
getCalendarItemsByTypes,
|
||||
searchStuffByCode,
|
||||
} from "../controller/publicController";
|
||||
import { pDamageReportFileUpload } from "../middleware/multer";
|
||||
|
||||
var router = express.Router({ mergeParams: true });
|
||||
|
||||
|
@ -15,8 +18,12 @@ router.get("/calendar", async (req, res) => {
|
|||
await getCalendarItemsByTypes(req, res);
|
||||
});
|
||||
|
||||
router.post("/reportdamage", async (req, res) => {
|
||||
res.send("TODO");
|
||||
router.get("/reportdamage", async (req, res) => {
|
||||
await searchStuffByCode(req, res);
|
||||
});
|
||||
|
||||
router.post("/reportdamage", pDamageReportFileUpload, async (req, res) => {
|
||||
await createDamageReport(req, res);
|
||||
});
|
||||
|
||||
router.post("/checkscannerroom", async (req, res) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue