Fixed history endpoint

This commit is contained in:
Maximilian Giller 2024-05-02 18:10:12 +02:00
parent 7bb61ea905
commit 636b14f206

View file

@ -30,7 +30,7 @@ async def get_file():
return HTMLResponse("\n".join(fp.readlines()))
@router.get("/file", tags=["file"])
@router.get("/history")
async def get_history(count: int = None) -> []:
points = []
with open(file_path, "r", encoding="UTF-8") as fp: