Skip to content
Snippets Groups Projects
Commit 26ea5105 authored by Marcus Schiesser's avatar Marcus Schiesser
Browse files

fix: align express port with fastapi port

parent 7a9bdc10
No related branches found
No related tags found
No related merge requests found
......@@ -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" }] }'
```
......
......@@ -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());
......
......@@ -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" }] }'
```
......
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment