File tree
Expand file treeCollapse file tree2 files changed
+2
-0
lines changed Expand file treeCollapse file tree2 files changed
+2
-0
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -22,6 +22,7 @@ def chat_list_messages(session: Session = Depends(get_session)):
|
22 | 22 |
|
23 | 23 | # HTTP POST -> payload = {"message": "Hello world"} -> {"message": "hello world", "id": 1}
|
24 | 24 | # curl -X POST -d '{"message": "Hello world"}' -H "Content-Type: application/json" http://localhost:8080/api/chats/
|
| 25 | +# curl -X POST -d '{"message": "Hello world"}' -H "Content-Type: application/json" https://docker-api-fastapi-python-app-3jid9.ondigitalocean.app/api/chats/ |
25 | 26 | @router.post("/", response_model=ChatMessageListItem)
|
26 | 27 | def chat_create_message(
|
27 | 28 | payload:ChatMessagePayload,
|
|
Original file line number | Diff line number | Diff line change |
---|
|
8 | 8 | if DATABASE_URL == "":
|
9 | 9 | raise NotImplementedError("`DATABASE_URL` needs to be set.")
|
10 | 10 |
|
| 11 | +DATABASE_URL = DATABASE_URL.replace("postgres://", "postgres+psycopg://") |
11 | 12 |
|
12 | 13 | engine = sqlmodel.create_engine(DATABASE_URL)
|
13 | 14 |
|
|
You can’t perform that action at this time.
0 commit comments