From 26ea51050536bf0fcd0750e5b6d7bb8da311abf8 Mon Sep 17 00:00:00 2001 From: Marcus Schiesser <mail@marcusschiesser.de> Date: Fri, 10 Nov 2023 18:15:14 +0700 Subject: [PATCH] fix: align express port with fastapi port --- templates/types/simple/express/README-template.md | 2 +- templates/types/simple/express/index.ts | 2 +- templates/types/streaming/express/README-template.md | 2 +- templates/types/streaming/express/index.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/types/simple/express/README-template.md b/templates/types/simple/express/README-template.md index 2da2865d..98ebc4e4 100644 --- a/templates/types/simple/express/README-template.md +++ b/templates/types/simple/express/README-template.md @@ -17,7 +17,7 @@ npm run dev Then call the express API endpoint `/api/chat` to see the result: ``` -curl --location 'localhost:3000/api/chat' \ +curl --location 'localhost:8000/api/chat' \ --header 'Content-Type: application/json' \ --data '{ "messages": [{ "role": "user", "content": "Hello" }] }' ``` diff --git a/templates/types/simple/express/index.ts b/templates/types/simple/express/index.ts index 90ce98b6..a1bef65d 100644 --- a/templates/types/simple/express/index.ts +++ b/templates/types/simple/express/index.ts @@ -3,7 +3,7 @@ import express, { Express, Request, Response } from "express"; import chatRouter from "./src/routes/chat.route"; const app: Express = express(); -const port = 3000; +const port = 8000; app.use(express.json()); diff --git a/templates/types/streaming/express/README-template.md b/templates/types/streaming/express/README-template.md index 2da2865d..98ebc4e4 100644 --- a/templates/types/streaming/express/README-template.md +++ b/templates/types/streaming/express/README-template.md @@ -17,7 +17,7 @@ npm run dev Then call the express API endpoint `/api/chat` to see the result: ``` -curl --location 'localhost:3000/api/chat' \ +curl --location 'localhost:8000/api/chat' \ --header 'Content-Type: application/json' \ --data '{ "messages": [{ "role": "user", "content": "Hello" }] }' ``` diff --git a/templates/types/streaming/express/index.ts b/templates/types/streaming/express/index.ts index 90ce98b6..a1bef65d 100644 --- a/templates/types/streaming/express/index.ts +++ b/templates/types/streaming/express/index.ts @@ -3,7 +3,7 @@ import express, { Express, Request, Response } from "express"; import chatRouter from "./src/routes/chat.route"; const app: Express = express(); -const port = 3000; +const port = 8000; app.use(express.json()); -- GitLab