forked from p15670423/monkey
Island: Separate initialization of RESTful and RPC endpoints
This commit is contained in:
parent
bcb97ce35d
commit
03ec893e97
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue