tambah route texs

This commit is contained in:
bipproduction
2025-11-10 17:12:50 +08:00
parent cdd7c6fa2b
commit 03955743ca

View File

@@ -24,7 +24,7 @@ const TestRoute = new Elysia({
} }
}) })
.post("/test-info-rapat", ({ body }) => { .post("/simpan-rapat", ({ body }) => {
if (!body.gambar) { if (!body.gambar) {
return { return {
success: false, success: false,
@@ -41,11 +41,11 @@ const TestRoute = new Elysia({
judul: t.String(), judul: t.String(),
tanggal: t.String(), tanggal: t.String(),
deskripsi: t.String(), deskripsi: t.String(),
gambar: t.String(), gambar: t.Required(t.String()),
}), }),
detail: { detail: {
summary: "test simpan data rapat", summary: "simpan data rapat",
description: "test simpan data rapat memerlukan base64 gambar", description: "simpan data rapat memerlukan base64 gambar",
} }
}) })