diff --git a/.github/workflows/erode.yml b/.github/workflows/erode.yml index ceabac0..e2b33f2 100644 --- a/.github/workflows/erode.yml +++ b/.github/workflows/erode.yml @@ -28,7 +28,7 @@ jobs: - name: Run Erode Analysis uses: erode-app/erode@main with: - model-repo: erode-app/playground-models-only + model-repo: ${{ github.repository }} model-path: likec4 model-ref: main open-pr: ${{ github.event_name == 'issue_comment' && 'true' || 'auto' }} 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(` +
${JSON.stringify(users, null, 2)}
+ `);
+});
app.get("/", async (_req, res) => {
const [usersRes, productsRes] = await Promise.all([