You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monero.fail/xmrnodes/app.py

24 lines
490 B
Python

import logging
from flask import Flask
from xmrnodes.routes import meta, api
from xmrnodes import cli, filters
logging.basicConfig(
level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s"
)
app = Flask(__name__)
app.config.from_envvar("FLASK_SECRETS")
app.secret_key = app.config["SECRET_KEY"]
app.register_blueprint(meta.bp)
app.register_blueprint(api.bp)
app.register_blueprint(cli.bp)
app.register_blueprint(filters.bp)
if __name__ == "__main__":
app.run()