fix mcp generator

This commit is contained in:
bipproduction
2025-11-13 19:37:09 +08:00
parent 254d05f5ea
commit 78f2263c86
3 changed files with 477 additions and 65 deletions

View File

@@ -25,7 +25,7 @@ const TestRoute = new Elysia({
})
.post("/simpan-rapat", ({ body }) => {
if (!body.gambar) {
if (!body.image_name) {
return {
success: false,
message: "gambar harus diisi",
@@ -34,14 +34,14 @@ const TestRoute = new Elysia({
return {
success: true,
message: "data info rapat berhasil diambil",
chunk: body.gambar.substring(22)
chunk: body.image_name.substring(22)
}
}, {
body: t.Object({
judul: t.String(),
tanggal: t.String(),
deskripsi: t.String(),
gambar: t.Required(t.String()),
image_name: t.Required(t.String()),
}),
detail: {
summary: "simpan data rapat",