Island: Separate initialization of RESTful and RPC endpoints

This commit is contained in:
Mike Salvatore 2022-06-30 12:31:26 -04:00
parent bcb97ce35d
commit 03ec893e97
1 changed files with 9 additions and 0 deletions

View File

@ -143,6 +143,11 @@ class FlaskDIWrapper:
def init_api_resources(api: FlaskDIWrapper):
init_restful_endpoints(api)
init_rpc_endpoints(api)
def init_restful_endpoints(api: FlaskDIWrapper):
api.add_resource(Root)
api.add_resource(Registration)
api.add_resource(Authenticate)
@ -192,6 +197,10 @@ def init_api_resources(api: FlaskDIWrapper):
api.add_resource(TelemetryBlackboxEndpoint)
def init_rpc_endpoints(api: FlaskDIWrapper):
pass
def init_app(mongo_url: str, container: DIContainer):
"""
Simple docstirng for init_app