docs: 更新 api 文档样式,使用 redoc 风格
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
BryantHe 2023-08-18 18:45:57 +08:00
parent 5e3b1c4bba
commit 72303f4837

View File

@ -37,7 +37,7 @@ def load_rpc_client(apiflask_app):
def create_app():
# http wsgi server 托管启动需指定读取环境配置
# load_dotenv(os.path.join(basedir, '.apiflaskenv'))
app = APIFlask(__name__, title='Body Record API', version='1.0.0')
app = APIFlask(__name__, title='Body Record API', version='1.0.0', docs_ui='redoc')
load_app_config(app)
register_blueprints(app)
load_rpc_client(app)