tambah route texs
This commit is contained in:
@@ -4,6 +4,12 @@ const TestRoute = new Elysia({
|
|||||||
prefix: "test",
|
prefix: "test",
|
||||||
tags: ["mcp", "test"],
|
tags: ["mcp", "test"],
|
||||||
}).post("/test-info-rapat", ({ body }) => {
|
}).post("/test-info-rapat", ({ body }) => {
|
||||||
|
if (!body.gambar) {
|
||||||
|
return {
|
||||||
|
success: false,
|
||||||
|
message: "gambar harus diisi",
|
||||||
|
}
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
success: true,
|
success: true,
|
||||||
message: "data info rapat berhasil diambil",
|
message: "data info rapat berhasil diambil",
|
||||||
|
|||||||
Reference in New Issue
Block a user