🐛: 修复一些小bug
This commit is contained in:
parent
84ee1837ce
commit
4ffaa5a938
2 changed files with 6 additions and 2 deletions
|
|
@ -132,8 +132,9 @@ app = FastAPI(
|
|||
app.include_router(api_router, prefix="/api")
|
||||
|
||||
# PyWebIO APP
|
||||
webapp = asgi_app(lambda: MainView().main_view())
|
||||
app.mount("/", webapp)
|
||||
if config['Web']['PyWebIO_Enable']:
|
||||
webapp = asgi_app(lambda: MainView().main_view())
|
||||
app.mount("/", webapp)
|
||||
|
||||
if __name__ == '__main__':
|
||||
uvicorn.run(app, host=Host_IP, port=Host_Port)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
# Web
|
||||
Web:
|
||||
# APP Switch
|
||||
PyWebIO_Enable: true # Enable APP | 启用APP
|
||||
|
||||
# APP Information
|
||||
Domain: https://douyin.wtf # Web domain | Web域名
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue