tambahan
This commit is contained in:
24
src/server/routes/aduan_route.ts
Normal file
24
src/server/routes/aduan_route.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import Elysia from "elysia";
|
||||
import { t } from "elysia";
|
||||
|
||||
const AduanRoute = new Elysia({
|
||||
prefix: "aduan",
|
||||
tags: ["aduan"],
|
||||
})
|
||||
.post("/create", () => {
|
||||
return {
|
||||
success: true,
|
||||
data: ""
|
||||
}
|
||||
}, {
|
||||
body: t.Object({
|
||||
title: t.String(),
|
||||
description: t.String(),
|
||||
}),
|
||||
detail: {
|
||||
summary: "create",
|
||||
description: "create aduan",
|
||||
}
|
||||
})
|
||||
|
||||
export default AduanRoute
|
||||
Reference in New Issue
Block a user