implement spaceapid integration into API
All checks were successful
Build Container / Build Container (push) Successful in 4m38s
All checks were successful
Build Container / Build Container (push) Successful in 4m38s
This commit is contained in:
parent
394b423b8e
commit
ecd6c2c48f
6 changed files with 129 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ from simple_openid_connect.client import OpenidClient
|
|||
from dooris_api import app_config
|
||||
from dooris_api import models, exceptions
|
||||
from dooris_api.ccujack import CCUJackClient
|
||||
from dooris_api.spaceapi import SpaceApiClient
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
@ -213,3 +214,12 @@ def get_ccujack(req: Request) -> CCUJackClient:
|
|||
|
||||
|
||||
CCUJackClient = Annotated[CCUJackClient, Depends(get_ccujack)]
|
||||
|
||||
|
||||
|
||||
def get_spaceapi_client(req: Request) -> SpaceApiClient:
|
||||
return req.app.extra["spaceapi"]
|
||||
|
||||
|
||||
SpaceApiClient = Annotated[SpaceApiClient, Depends(get_spaceapi_client)]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue