Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,7 +70,11 @@ async def startup():
|
|
| 70 |
|
| 71 |
@app.get("/", response_class=HTMLResponse)
|
| 72 |
async def home(request: Request):
|
| 73 |
-
return templates.TemplateResponse(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
@app.get("/api/history")
|
| 76 |
async def get_history():
|
|
|
|
| 70 |
|
| 71 |
@app.get("/", response_class=HTMLResponse)
|
| 72 |
async def home(request: Request):
|
| 73 |
+
return templates.TemplateResponse(
|
| 74 |
+
request=request,
|
| 75 |
+
name="index.html",
|
| 76 |
+
context={} # если нужно передать еще данные, пишите их сюда
|
| 77 |
+
)
|
| 78 |
|
| 79 |
@app.get("/api/history")
|
| 80 |
async def get_history():
|