(token: str = Depends(get_token))
| 94 | |
| 95 | @app.get("/get_credits") |
| 96 | async def fetch_credits(token: str = Depends(get_token)): |
| 97 | try: |
| 98 | resp = await get_credits(token) |
| 99 | return resp |
| 100 | except Exception as e: |
| 101 | raise HTTPException( |
| 102 | detail=str(e), status_code=status.HTTP_500_INTERNAL_SERVER_ERROR |
| 103 | ) |
nothing calls this directly
no test coverage detected