add:fronted
This commit is contained in:
@@ -48,3 +48,9 @@ app.include_router(admin_api)
|
|||||||
@app.get('/')
|
@app.get('/')
|
||||||
async def index():
|
async def index():
|
||||||
return HTMLResponse(content=open('./fcb-fronted/dist/index.html', 'r', encoding='utf-8').read(), status_code=200)
|
return HTMLResponse(content=open('./fcb-fronted/dist/index.html', 'r', encoding='utf-8').read(), status_code=200)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
import uvicorn
|
||||||
|
|
||||||
|
uvicorn.run(app='main:app', host="0.0.0.0", port=12345, reload=False, workers=3)
|
||||||
|
|||||||
Reference in New Issue
Block a user