aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/main.py b/api/main.py
index c869bc0..87827b1 100644
--- a/api/main.py
+++ b/api/main.py
@@ -39,7 +39,7 @@ app.include_router(links_router)
# Regenerate the API key for the user
@app.post("/regenerate")
-async def login(api_key: str = Security(check_api_key), db = Depends(get_db)):
+async def regenerate(api_key: str = Security(check_api_key), db = Depends(get_db)):
print(api_key['value'])
user = db.query(User).filter(User.api_key == api_key['value']).first()