From 10162473f4d4b6eb4fb7fdb8ecb597921ca177b2 Mon Sep 17 00:00:00 2001 From: bipproduction Date: Mon, 27 Oct 2025 02:32:07 +0800 Subject: [PATCH] tambahan --- src/index.tsx | 4 +++- x.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index c8258ad..5673621 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -11,6 +11,7 @@ import UserRoute from "./server/routes/user_route"; import LayananRoute from "./server/routes/layanan_route"; import AduanRoute from "./server/routes/aduan_route"; import MCPRoute from "./server/routes/mcp_route"; +import { cors } from "@elysiajs/cors"; const Docs = new Elysia({ tags: ["docs"], @@ -33,6 +34,7 @@ const Api = new Elysia({ .use(AduanRoute); const app = new Elysia() + .use(cors()) .use(Api) .use(Docs) .use(Auth) @@ -50,7 +52,7 @@ const app = new Elysia() }, ) .use(MCPRoute) - .get("/*", html) + // .get("/*", html) .listen(3000, () => { console.log("Server running at http://localhost:3000"); }); diff --git a/x.sh b/x.sh index 2329cd0..e2d7ceb 100644 --- a/x.sh +++ b/x.sh @@ -1,2 +1,2 @@ -curl -N -v -X GET "https://n8n.wibudev.com/mcp" +curl -N -v -X GET "https://cld-dkr-prod-jenna-mcp.wibudev.com/mcp"