Remove API_ROOT

This commit is contained in:
0880
2026-01-17 18:56:03 +03:30
parent 467b7d4706
commit 975e813947

7
app.py
View File

@@ -189,17 +189,14 @@ class Room:
rooms: dict[str, Room] = {}
API_ROOT = "http://127.0.0.1:8989"
@app.GET("/")
async def home(request):
return render(request, "index.html", {"API_ROOT": API_ROOT})
return render(request, "index.html")
@app.GET("/<id>")
async def home_with_id(request, id):
return render(request, "index.html", {"API_ROOT": API_ROOT})
return render(request, "index.html")
@app.POST("/join/<room_id>")