mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix: Swagger UI generates incorrect double-prefixed URLs (/api/api/...) (#25266)
fix: add ignoreGlobalPrefix option to Swagger options
This commit is contained in:
@@ -261,6 +261,7 @@ export const useSwagger = (app: INestApplication, { write }: { write: boolean })
|
|||||||
const options: SwaggerDocumentOptions = {
|
const options: SwaggerDocumentOptions = {
|
||||||
operationIdFactory: (controllerKey: string, methodKey: string) => methodKey,
|
operationIdFactory: (controllerKey: string, methodKey: string) => methodKey,
|
||||||
extraModels: extraSyncModels,
|
extraModels: extraSyncModels,
|
||||||
|
ignoreGlobalPrefix: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
const specification = SwaggerModule.createDocument(app, config, options);
|
const specification = SwaggerModule.createDocument(app, config, options);
|
||||||
|
|||||||
Reference in New Issue
Block a user