tambah route texs

This commit is contained in:
bipproduction
2025-11-10 17:08:10 +08:00
parent c51dcfdad4
commit cdd7c6fa2b

View File

@@ -3,7 +3,28 @@ import Elysia, { t } from "elysia";
const TestRoute = new Elysia({
prefix: "test",
tags: ["mcp", "test"],
}).post("/test-info-rapat", ({ body }) => {
})
.get("/info-rapat-list", () => {
return {
success: true,
message: "data info rapat berhasil diambil",
data: [
{
judul: "Info Rapat",
tanggal: "2025-11-10",
deskripsi: "Info rapat",
gambar: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII="
}
]
}
}, {
detail: {
summary: "mendapatkan list rapat",
description: "mendapatkan list rapat dari database",
}
})
.post("/test-info-rapat", ({ body }) => {
if (!body.gambar) {
return {
success: false,