Remove unused print statement

This commit is contained in:
Parker M. 2024-08-07 15:54:19 -05:00
parent 1225d67774
commit 143378ce4b
No known key found for this signature in database
GPG Key ID: 95CD2E0C7E329F2A

View File

@ -40,8 +40,7 @@ app.include_router(links_router)
# Regenerate the API key for the user
@app.post("/regenerate")
async def regenerate(api_key: str = Security(check_api_key), db = Depends(get_db)):
print(api_key['value'])
"""Regenerate the API key for the user. Requires the current API key."""
user = db.query(User).filter(User.api_key == api_key['value']).first()
if not user:
raise HTTPException(status_code=401, detail="Invalid API key")