api支持

This commit is contained in:
2022-07-15 16:31:48 +08:00
parent 49238a09e0
commit 0589d13e39
5 changed files with 80 additions and 7 deletions

View File

@ -1,9 +1,12 @@
import logging
import atexit
from flask import Flask
from core import CoreManager
from core.controller.manager_blueprint import blueprint as manager_blueprint
logging.basicConfig(level=logging.INFO)
app = Flask(__name__)
app.register_blueprint(manager_blueprint)
def _on_exit():
@ -15,4 +18,4 @@ atexit.register(_on_exit)
if __name__ == '__main__':
c = CoreManager()
c.proxy_manager.join()
app.run()