fix: use global prefix

This commit is contained in:
Tine Jozelj
2023-09-11 14:52:50 +02:00
parent 47a5b26abc
commit 9381c59112
+3 -1
View File
@@ -37,6 +37,8 @@ export const swagger =
...documentation.info
}
const pathWithPrefix = `${app.config.prefix}${path}`;
app.get(path, () => {
return new Response(
`<!DOCTYPE html>
@@ -61,7 +63,7 @@ export const swagger =
<script>
window.onload = () => {
window.ui = SwaggerUIBundle({
url: '${path}/json',
url: '${pathWithPrefix}/json',
dom_id: '#swagger-ui',
});
};