Skip to content

Commit 542a6b1

Browse files
committed
Fix endpoint
1 parent 613ef94 commit 542a6b1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

backend/api/src/app.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ swaggerDocument.info = {
113113
}
114114
};
115115

116-
app.use(pathWithPrefix(""), swaggerUi.serve, swaggerUi.setup(swaggerDocument))
116+
const rootPath = pathWithPrefix("/")
117+
app.get(rootPath, swaggerUi.setup(swaggerDocument))
118+
app.use(rootPath, swaggerUi.serve)
117119

118120
app.options('*', allowCorsUnrestricted)
119121

common/src/api/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { ENV_CONFIG } from 'common/envs/constants'
2-
import { type APIPath } from './schema'
32

43
type ErrorCode =
54
| 400 // your input is bad (like zod is mad)

0 commit comments

Comments
 (0)