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
|
@@ -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/);
|
package/src/modules/swagger.mjs
CHANGED
|
@@ -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\` (
|
|
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')) {
|