fix directory name
- now saves to ~/.radical-api - made API key parameter for /key/me consistent.
This commit is contained in:
parent
0d6b817ff5
commit
e9fa150618
2 changed files with 3 additions and 3 deletions
|
@ -86,6 +86,6 @@ def create_key(name, system_key: APIKey = Depends(get_system_key)):
|
|||
|
||||
|
||||
@router.get("/key/me")
|
||||
def key_info(api_key: APIKey = Depends(get_api_key)):
|
||||
def key_info(access_token: APIKey = Depends(get_api_key)):
|
||||
data = load_keys()
|
||||
return data[api_key]
|
||||
return data[access_token]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue