This commit is contained in:
Gitea
2026-05-19 00:15:36 +05:30
parent 55c7f7d693
commit 028b91ffc3
+5 -1
View File
@@ -17,7 +17,7 @@ app.post("/send-notification", async (req, res) => {
try {
const { token, title, body, logo, MediaType, TargetScreen } = req.body;
const { token, title, body, logo, MediaType, TargetScreen,projectCode,empCode } = req.body;
let message = {};
@@ -33,6 +33,8 @@ app.post("/send-notification", async (req, res) => {
body: body,
temp_source: "text",
route: TargetScreen,
projectCode: projectCode,
empCode: empCode,
},
token: token,
};
@@ -52,6 +54,8 @@ app.post("/send-notification", async (req, res) => {
body: body,
temp_source: "image",
route: TargetScreen,
projectCode: projectCode,
empCode: empCode,
},
android: {
notification: {