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"