Spaces:
Sleeping
Sleeping
msmhmorsi
commited on
Commit
·
55c4d30
1
Parent(s):
266dcc6
bug fix
Browse files
app.py
CHANGED
@@ -3,6 +3,6 @@ from fastapi import FastAPI, Request
|
|
3 |
app = FastAPI()
|
4 |
|
5 |
@app.get("/")
|
6 |
-
def greet_json():
|
7 |
print("Received cookies:", request.cookies)
|
8 |
return {"Hello": "World!"}
|
|
|
3 |
app = FastAPI()
|
4 |
|
5 |
@app.get("/")
|
6 |
+
def greet_json(request: Request):
|
7 |
print("Received cookies:", request.cookies)
|
8 |
return {"Hello": "World!"}
|