You've already forked Douyin_Web_Live
api支持
This commit is contained in:
7
main.py
7
main.py
@ -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()
|
||||
|
Reference in New Issue
Block a user