mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
fix: Swagger UI generates incorrect double-prefixed URLs (/api/api/...) (#25266)
fix: add ignoreGlobalPrefix option to Swagger options
This commit is contained in:
parent
0a62ec7e29
commit
7b3a298c6a
1 changed files with 1 additions and 0 deletions
|
|
@ -261,6 +261,7 @@ export const useSwagger = (app: INestApplication, { write }: { write: boolean })
|
|||
const options: SwaggerDocumentOptions = {
|
||||
operationIdFactory: (controllerKey: string, methodKey: string) => methodKey,
|
||||
extraModels: extraSyncModels,
|
||||
ignoreGlobalPrefix: true,
|
||||
};
|
||||
|
||||
const specification = SwaggerModule.createDocument(app, config, options);
|
||||
|
|
|
|||
Loading…
Reference in a new issue