diff --git a/app/__init__.py b/app/__init__.py index 55dd41a..eef3f32 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -37,7 +37,8 @@ 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', docs_ui='redoc') + app = APIFlask(__name__, title='Body Record API', version='1.0.0', docs_ui='redoc', + spec_path='/pzx/openapi.json', docs_path='/pzx/docs') load_app_config(app) register_blueprints(app) load_rpc_client(app)