Fix function name for 'regenerate'
This commit is contained in:
parent
9d9c0659b0
commit
1225d67774
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user