tamabahan
This commit is contained in:
@@ -150,7 +150,7 @@ const DarmasabaRoute = new Elysia({
|
|||||||
type: v.type
|
type: v.type
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},{
|
}, {
|
||||||
detail: {
|
detail: {
|
||||||
summary: "list-pengetahuan-umum",
|
summary: "list-pengetahuan-umum",
|
||||||
description: "get list of files in darmasaba/pengetahuan-umum"
|
description: "get list of files in darmasaba/pengetahuan-umum"
|
||||||
@@ -189,6 +189,29 @@ const DarmasabaRoute = new Elysia({
|
|||||||
description: "get content of file in darmasaba/pengetahuan-umum/<file_name>"
|
description: "get content of file in darmasaba/pengetahuan-umum/<file_name>"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.post("/buat-laporan", ({ body }) => {
|
||||||
|
const { jenis_laporan, name, phone, detail } = body
|
||||||
|
|
||||||
|
return `
|
||||||
|
${JSON.stringify(body)}
|
||||||
|
|
||||||
|
laporan sudah diterima dan akan segera di tindak lanjuti`
|
||||||
|
|
||||||
|
}, {
|
||||||
|
body: t.Object({
|
||||||
|
jenis_laporan: t.String(),
|
||||||
|
name: t.String(),
|
||||||
|
phone: t.String(),
|
||||||
|
detail: t.String()
|
||||||
|
}),
|
||||||
|
detail: {
|
||||||
|
summary: "buat-laporan atau pengaduan",
|
||||||
|
description: `
|
||||||
|
tool untuk membuat laporan atau pengaduan warga kepada desa darmasaba
|
||||||
|
|
||||||
|
`
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
export default DarmasabaRoute
|
export default DarmasabaRoute
|
||||||
|
|||||||
Reference in New Issue
Block a user