ZakharZokhar commited on
Commit
4b5a56f
1 Parent(s): 2d683a3

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -14,7 +14,7 @@ templates = Jinja2Templates(directory="templates")
14
  # Главная страница с текстом "server is running"
15
  @app.get("/")
16
  async def read_root(request: Request):
17
- return templates.TemplateResponse("index.html", {"text": "server is running"})
18
 
19
  # Определяем единственный POST endpoint
20
  @app.post("/echo")
 
14
  # Главная страница с текстом "server is running"
15
  @app.get("/")
16
  async def read_root(request: Request):
17
+ return templates.TemplateResponse("index.html", {"request": request, "text": "server is running"})
18
 
19
  # Определяем единственный POST endpoint
20
  @app.post("/echo")