diff --git a/src/index.tsx b/src/index.tsx index bfb66aa..eaf7d2b 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -25,14 +25,14 @@ const Api = new Elysia({ prefix: "/api", tags: ["api"], }) + .use(PengaduanRoute) .use(apiAuth) .use(ApiKeyRoute) .use(DarmasabaRoute) .use(CredentialRoute) .use(UserRoute) .use(LayananRoute) - .use(AduanRoute) - .use(PengaduanRoute); + .use(AduanRoute); const app = new Elysia() .use(Api) diff --git a/x.sh b/x.sh index 5c8f95e..210e812 100644 --- a/x.sh +++ b/x.sh @@ -1,6 +1,2 @@ -# curl -N -v -X GET "https://cld-dkr-prod-jenna-mcp.wibudev.com/mcp/test-session-id" - -curl -X POST http://localhost:3000/mcp/test-room \ - -H "Content-Type: application/json" \ - -H "X-API-Key: super-secret-key" \ - -d '{"event":"notice","data":{"msg":"hello world"}}' +TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJob3N0Iiwic3ViIjoiYmlwIiwicGF5bG9hZCI6IntcIm5hbWVcIjpcImplbm5hLW1jcFwiLFwiZGVzY3JpcHRpb25cIjpcInVudHVrIGplbm5hIG1jcFwiLFwiZXhwaXJlZEF0XCI6XCIyMDQ4LTA2LTI4XCJ9IiwiZXhwIjoyNDc2OTE1MjAwLCJpYXQiOjE3NjE2NDA1NDN9.EY4P246r3GBHo3yJgG0c5hvgG7p1z2x0KNL2fWBMpk8 +curl http://localhost:3000/api/pengaduan/category \ No newline at end of file