create-forgeon 0.1.33 → 0.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-forgeon",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Forgeon project generator CLI",
5
5
  "license": "MIT",
6
6
  "author": "Forgeon",
@@ -419,7 +419,7 @@ describe('addModule', () => {
419
419
  const rootReadme = fs.readFileSync(path.join(projectRoot, 'README.md'), 'utf8');
420
420
  assert.match(rootReadme, /## Swagger \/ OpenAPI Module/);
421
421
  assert.match(rootReadme, /SWAGGER_ENABLED=false/);
422
- assert.match(rootReadme, /localhost:3000\/docs/);
422
+ assert.match(rootReadme, /localhost:3000\/api\/docs/);
423
423
 
424
424
  const moduleDoc = fs.readFileSync(result.docsPath, 'utf8');
425
425
  assert.match(moduleDoc, /Swagger \/ OpenAPI/);
@@ -284,8 +284,8 @@ Configuration (env):
284
284
  - \`SWAGGER_VERSION=1.0.0\`
285
285
 
286
286
  When enabled:
287
- - UI endpoint: \`http://localhost:3000/docs\` (or your configured path)
288
- - in Docker with proxy: \`http://localhost:8080/docs\`
287
+ - UI endpoint: \`http://localhost:3000/api/docs\` (respects global API prefix)
288
+ - in Docker with proxy: \`http://localhost:8080/api/docs\`
289
289
  `;
290
290
 
291
291
  if (content.includes('## Prisma In Docker Start')) {
@@ -17,9 +17,9 @@ export function setupSwagger(app: INestApplication, config: SwaggerConfigService
17
17
  );
18
18
 
19
19
  SwaggerModule.setup(config.path, app, document, {
20
+ useGlobalPrefix: true,
20
21
  swaggerOptions: {
21
22
  persistAuthorization: true,
22
23
  },
23
24
  });
24
25
  }
25
-