feature/IO-3060-Realtime-Notifications-Progress Update
This commit is contained in:
@@ -4,6 +4,9 @@ const { subscribe, unsubscribe, sendNotification } = require("../firebase/fireba
|
||||
const eventAuthorizationMiddleware = require("../middleware/eventAuthorizationMIddleware");
|
||||
const handleJobChange = require("../notifications/eventHandlers/handeJobChange");
|
||||
const handleBillChange = require("../notifications/eventHandlers/handleBillChange");
|
||||
const handlePartsOrderChange = require("../notifications/eventHandlers/handlePartsOrderChange");
|
||||
const handlePartsDispatchChange = require("../notifications/eventHandlers/handlePartsDispatchChange");
|
||||
const handleTasksChange = require("../notifications/eventHandlers/handleTasksChange");
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
@@ -15,5 +18,9 @@ router.post("/sendtestnotification", validateFirebaseIdTokenMiddleware, sendNoti
|
||||
// Hasura Entry points for creating notifications
|
||||
router.post("/events/handleJobChange", eventAuthorizationMiddleware, handleJobChange);
|
||||
router.post("/events/handleBillChange", eventAuthorizationMiddleware, handleBillChange);
|
||||
router.post("/events/handlePartsOrderChange", eventAuthorizationMiddleware, handlePartsOrderChange);
|
||||
router.post("/events/handlePartsDispatchChange", eventAuthorizationMiddleware, handlePartsDispatchChange);
|
||||
router.post("/events/handleTasksChange", eventAuthorizationMiddleware, handleTasksChange);
|
||||
router.post("/events/handleTimeTicketsChange", eventAuthorizationMiddleware, handleTasksChange);
|
||||
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user