tambah route texs
This commit is contained in:
@@ -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",
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user