tambah route texs
This commit is contained in:
26
src/server/routes/test.ts
Normal file
26
src/server/routes/test.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import Elysia, { t } from "elysia";
|
||||
|
||||
const TestRoute = new Elysia({
|
||||
prefix: "test",
|
||||
tags: ["mcp", "test"],
|
||||
}).post("/test-info-rapat", ({ body }) => {
|
||||
return {
|
||||
success: true,
|
||||
message: "data info rapat berhasil diambil",
|
||||
chunk: body.gambar.substring(22)
|
||||
}
|
||||
}, {
|
||||
body: t.Object({
|
||||
judul: t.String(),
|
||||
tanggal: t.String(),
|
||||
deskripsi: t.String(),
|
||||
gambar: t.String(),
|
||||
}),
|
||||
detail: {
|
||||
summary: "upload base64",
|
||||
description: "upload base64",
|
||||
}
|
||||
})
|
||||
|
||||
export default TestRoute
|
||||
|
||||
Reference in New Issue
Block a user