We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a826770 commit fa6af3cCopy full SHA for fa6af3c
apps/items-app/src/index.ts
@@ -5,6 +5,7 @@ let items: Item[] = [{ id: 1, name: "first" }];
5
6
const PORT = Number(process.env.PORT || 8080);
7
const API_PREFIX = "/v1";
8
+const APP_PREFIX = "/items";
9
10
function json(data: unknown, init: ResponseInit = {}) {
11
return new Response(JSON.stringify(data), {
@@ -85,7 +86,7 @@ const swaggerHtml = `<!doctype html>
85
86
<script src="https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js"></script>
87
<script>
88
window.onload = () => {
- window.ui = SwaggerUIBundle({ url: '${API_PREFIX}/openapi.json', dom_id: '#swagger-ui' });
89
+ window.ui = SwaggerUIBundle({ url: '${APP_PREFIX}${API_PREFIX}/openapi.json', dom_id: '#swagger-ui' });
90
};
91
</script>
92
</body>
0 commit comments