This commit is contained in:
bipproduction
2025-10-28 16:47:39 +08:00
parent cae9ed7282
commit 8a3eaa2193
2 changed files with 4 additions and 8 deletions

View File

@@ -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)

8
x.sh
View File

@@ -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