Update 2025-04-13_16:41:14

This commit is contained in:
root
2025-04-13 16:41:15 +02:00
commit c6711f49e4
2229 changed files with 406880 additions and 0 deletions

22
main.py Normal file
View File

@ -0,0 +1,22 @@
from fastapi import FastAPI
from fastapi.responses import HTMLResponse
from fastapi.staticfiles import StaticFiles
app = FastAPI()
app.mount("/static", StaticFiles(directory="static"), name="static")
@app.get("/", response_class=HTMLResponse)
async def root():
with open("static/index.html") as f:
return f.read()
@app.get("/get_level/{level}")
async def get_level(level: int):
# For now, return a static range; adjust based on your game logic
return {"multiplier_range": [1, 10]}
@app.post("/submit_score/")
async def submit_score(data: dict):
# For now, just return success; add database logic if needed
return {"status": "success"}