Spaces:
Runtime error
Runtime error
main.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
from fastapi import FastAPI
|
2 |
-
|
|
|
3 |
|
4 |
app = FastAPI()
|
5 |
|
@@ -10,5 +11,5 @@ def read_root():
|
|
10 |
|
11 |
|
12 |
@app.get("/ticker/{item_id}")
|
13 |
-
def read_item(item_id:
|
14 |
-
return {"item_id": item_id
|
|
|
1 |
from fastapi import FastAPI
|
2 |
+
|
3 |
+
# from typing import Union
|
4 |
|
5 |
app = FastAPI()
|
6 |
|
|
|
11 |
|
12 |
|
13 |
@app.get("/ticker/{item_id}")
|
14 |
+
def read_item(item_id: str):
|
15 |
+
return {"item_id": item_id}
|