New version API collaboration and tested for Project

This commit is contained in:
2025-05-29 19:11:26 +05:30
parent 72faf6782e
commit 2bb3814d75
25 changed files with 526 additions and 88 deletions

View File

@@ -34,6 +34,11 @@ export const AddWidgetController = async (
message: "User not found",
});
break;
case "Project not found":
res.status(404).json({
message: "Project not found",
});
break;
case "Zone not found for the zoneId":
res.status(404).json({
message: "Zone not found",
@@ -102,6 +107,11 @@ export const WidgetDeleteController = async (
message: "User not found",
});
break;
case "Project not found":
res.status(404).json({
message: "Project not found",
});
break;
case "Zone not found for the zoneId":
res.status(404).json({
message: "Zone not found for the zoneId",
@@ -169,6 +179,11 @@ export const WidgetUpdateController = async (
message: "Project not found",
});
break;
case "Project not found":
res.status(404).json({
message: "Project not found",
});
break;
case "Zone not found for the zoneId":
res.status(404).json({
message: "Zone not found for the zoneId",
@@ -232,6 +247,11 @@ export const GetWidgetController = async (
message: "Project not found",
});
break;
case "Project not found":
res.status(404).json({
message: "Project not found",
});
break;
case "Zone not found for the zoneId":
res.status(404).json({
message: "Zone not found for the zoneId",