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()