Skip to content

Commit

Permalink
Added Ping API to GCTB
Browse files Browse the repository at this point in the history
  • Loading branch information
lalithkota committed Nov 27, 2023
1 parent 9bfe414 commit c852202
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gctb-mojaloop-sdk-payment-backend/payment_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ async def get_payee_id_value_from_payee_fa(self, fa: str) -> str:
Initializer as G2pConnectMapperInitializer,
)
from openg2p_fastapi_common.app import Initializer
from openg2p_fastapi_common.ping import PingInitializer


class PaymentBackendInitializer(Initializer):
Expand All @@ -212,4 +213,5 @@ async def fastapi_app_lifespan(self, app: FastAPI):
main_init = PaymentBackendInitializer()
G2pConnectMapperInitializer()
TranslateIdInitializer()
PingInitializer()
main_init.main()
2 changes: 2 additions & 0 deletions gctb-simple-mpesa-payment-backend/payment_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ async def get_account_no_from_payee_fa(self, fa: str) -> str:
Initializer as G2pConnectMapperInitializer,
)
from openg2p_fastapi_common.app import Initializer
from openg2p_fastapi_common.ping import PingInitializer


class PaymentBackendInitializer(Initializer):
Expand All @@ -224,4 +225,5 @@ async def fastapi_app_lifespan(self, app: FastAPI):
main_init = PaymentBackendInitializer()
G2pConnectMapperInitializer()
TranslateIdInitializer()
PingInitializer()
main_init.main()
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
from openg2p_common_g2pconnect_id_mapper.app import (
Initializer as G2pConnectMapperInitializer,
)
from openg2p_fastapi_common.ping import PingInitializer

main_init = ApiInitializer()
G2pConnectMapperInitializer()
TranslateIdInitializer()
PingInitializer()
main_init.main()

0 comments on commit c852202

Please sign in to comment.