From 636b14f206fa2fcc35f17524b8bdf175c37ccedc Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Thu, 2 May 2024 18:10:12 +0200 Subject: [PATCH] Fixed history endpoint --- src/endpoints/bettwaage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/bettwaage.py b/src/endpoints/bettwaage.py index f6bf313..42f577b 100644 --- a/src/endpoints/bettwaage.py +++ b/src/endpoints/bettwaage.py @@ -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: