threads/app.py

12 lines
327 B
Python
Executable file

from flask import Flask
import json
from .threads import threads
from .cache import cache
app = Flask(__name__)
cache.init_app(app, config={'CACHE_TYPE': 'SimpleCache'})
app.register_blueprint(threads, url_prefix='/')
app.config.from_file("config.json", load=json.load)
if __name__ == '__main__':
app.run(host='0.0.0.0')