Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/erode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions packages/frontend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(`
<h1>Admin: Users</h1>
<pre>${JSON.stringify(users, null, 2)}</pre>
`);
});

app.get("/", async (_req, res) => {
const [usersRes, productsRes] = await Promise.all([
Expand Down