15 lines
477 B
Python
15 lines
477 B
Python
from flask import Blueprint, current_app
|
|
|
|
from grant.blockchain.bootstrap import send_bootstrap_data
|
|
from grant.utils.auth import internal_webhook
|
|
|
|
blueprint = Blueprint("blockchain", __name__, url_prefix="/api/v1/blockchain")
|
|
|
|
|
|
@blueprint.route("/bootstrap", methods=["GET"])
|
|
@internal_webhook
|
|
def get_bootstrap_info():
|
|
current_app.logger.info('Bootstrap data requested from blockchain watcher microservice...')
|
|
send_bootstrap_data()
|
|
return {"message": "ok"}, 200
|