Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 63730b6

Browse files
committed
fix/examples-ports
1 parent 8c17d10 commit 63730b6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/with-express/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ app.use('/api', createOpenApiExpressMiddleware({ router: appRouter, createContex
2222
app.use('/', swaggerUi.serve);
2323
app.get('/', swaggerUi.setup(openApiDocument));
2424

25-
app.listen(3001, () => {
26-
console.log('Server started on http://localhost:3001');
25+
app.listen(3000, () => {
26+
console.log('Server started on http://localhost:3000');
2727
});

examples/with-express/src/openapi.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const openApiDocument = generateOpenApiDocument(appRouter, {
77
title: 'Example CRUD API',
88
description: 'OpenAPI compliant REST API built using tRPC with Express',
99
version: '1.0.0',
10-
baseUrl: 'http://localhost:3001/api',
10+
baseUrl: 'http://localhost:3000/api',
1111
docsUrl: 'https://github.com/jlalmes/trpc-openapi',
1212
tags: ['auth', 'users', 'posts'],
1313
});

examples/with-serverless/src/openapi.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const openApiDocument = generateOpenApiDocument(appRouter, {
77
title: 'Example CRUD API',
88
description: 'OpenAPI compliant REST API built using tRPC with Serverless',
99
version: '1.0.0',
10-
baseUrl: 'http://localhost:3001/api',
10+
baseUrl: 'http://localhost:3000/api',
1111
docsUrl: 'https://github.com/jlalmes/trpc-openapi',
1212
tags: ['auth', 'users', 'posts'],
1313
});

0 commit comments

Comments
 (0)