tambahan
This commit is contained in:
@@ -9,6 +9,7 @@ import DarmasabaRoute from "./server/routes/darmasaba_route";
|
|||||||
import { convertOpenApiToMcp } from "./server/lib/mcp-converter";
|
import { convertOpenApiToMcp } from "./server/lib/mcp-converter";
|
||||||
import UserRoute from "./server/routes/user_route";
|
import UserRoute from "./server/routes/user_route";
|
||||||
import LayananRoute from "./server/routes/layanan_route";
|
import LayananRoute from "./server/routes/layanan_route";
|
||||||
|
import AduanRoute from "./server/routes/aduan_route";
|
||||||
|
|
||||||
const Docs = new Elysia({
|
const Docs = new Elysia({
|
||||||
tags: ["docs"],
|
tags: ["docs"],
|
||||||
@@ -27,7 +28,8 @@ const Api = new Elysia({
|
|||||||
.use(DarmasabaRoute)
|
.use(DarmasabaRoute)
|
||||||
.use(CredentialRoute)
|
.use(CredentialRoute)
|
||||||
.use(UserRoute)
|
.use(UserRoute)
|
||||||
.use(LayananRoute);
|
.use(LayananRoute)
|
||||||
|
.use(AduanRoute);
|
||||||
|
|
||||||
const app = new Elysia()
|
const app = new Elysia()
|
||||||
.use(Api)
|
.use(Api)
|
||||||
|
|||||||
@@ -184,15 +184,15 @@ function NavigationDashboard() {
|
|||||||
<NavLink
|
<NavLink
|
||||||
active={isActive("/scr/dashboard/apikey/apikey")}
|
active={isActive("/scr/dashboard/apikey/apikey")}
|
||||||
leftSection={<IconKey size={20} />}
|
leftSection={<IconKey size={20} />}
|
||||||
label="Dashboard Overview"
|
label="API Key"
|
||||||
description="Quick summary and activity highlights"
|
description="API Key Management and Generation"
|
||||||
onClick={() => navigate(clientRoutes["/scr/dashboard/apikey/apikey"])}
|
onClick={() => navigate(clientRoutes["/scr/dashboard/apikey/apikey"])}
|
||||||
/>
|
/>
|
||||||
<NavLink
|
<NavLink
|
||||||
active={isActive("/scr/dashboard/credential/credential")}
|
active={isActive("/scr/dashboard/credential/credential")}
|
||||||
leftSection={<IconLock size={20} />}
|
leftSection={<IconLock size={20} />}
|
||||||
label="Dashboard Overview"
|
label="Credential"
|
||||||
description="Quick summary and activity highlights"
|
description="Credential Management"
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
navigate(clientRoutes["/scr/dashboard/credential/credential"])
|
navigate(clientRoutes["/scr/dashboard/credential/credential"])
|
||||||
}
|
}
|
||||||
|
|||||||
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