upd: respon api

Deskripsi:
- update respon api pada village

No Issues
This commit is contained in:
amel
2024-07-29 12:19:01 +08:00
parent 45dfe0f0c6
commit 796c3227f0
3 changed files with 4 additions and 4 deletions

View File

@@ -8,8 +8,8 @@ export async function apiViilage(req: Request, method: Method) {
(v) => v.path === path && v.method === method
);
if (!path)
return Response.json({ message: "page not found" }, { status: 404 });
return Response.json({ success: false, message: "page not found" }, { status: 404 });
if (act) return act.bin(req);
return Response.json({ message: "404" });
return Response.json({ success: false, message: "404" });
}