mirror of
https://github.com/lalanza808/monero.fail.git
synced 2025-03-15 19:36:04 -04:00
24 lines
490 B
Python
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()
|