openreplay/ee/api/routers/subs/v1_api_ee.py
Taha Yassine Kraiem 6685eb1ac9 feat(api): fixed create custom metric and add to dashboard
feat(api): EE refactored sub-router
feat(api): EE upgrade fastapi
feat(api): EE refactored metrics
feat(api): EE split overview
2022-04-05 18:10:19 +02:00

12 lines
365 B
Python

from chalicelib.utils import assist_helper
from routers.base import get_routers
public_app, app, app_apikey = get_routers()
@app_apikey.get('/v1/assist/credentials', tags=["api"])
def get_assist_credentials():
credentials = assist_helper.get_temporary_credentials()
if "errors" in credentials:
return credentials
return {"data": credentials}