diff --git a/.github/workflows/erode.yml b/.github/workflows/erode.yml index ceabac0..aa27171 100644 --- a/.github/workflows/erode.yml +++ b/.github/workflows/erode.yml @@ -28,8 +28,9 @@ jobs: - name: Run Erode Analysis uses: erode-app/erode@main with: - model-repo: erode-app/playground-models-only - model-path: likec4 + model-repo: ${{ github.repository }} + model-path: structurizr + model-format: structurizr model-ref: main open-pr: ${{ github.event_name == 'issue_comment' && 'true' || 'auto' }} ai-provider: openai diff --git a/packages/frontend/src/index.ts b/packages/frontend/src/index.ts index a9dab20..18cb673 100644 --- a/packages/frontend/src/index.ts +++ b/packages/frontend/src/index.ts @@ -3,6 +3,16 @@ import express from "express"; const app = express(); const API_GATEWAY = "http://api-gateway:3000"; +const USER_SERVICE = "http://user-service:3001"; + +app.get("/admin/users", async (_req, res) => { + const response = await fetch(`${USER_SERVICE}/users`); + const users = await response.json(); + res.send(` +

Admin: Users

+
${JSON.stringify(users, null, 2)}
+ `); +}); app.get("/", async (_req, res) => { const [usersRes, productsRes] = await Promise.all([