Try to fix docs

This commit is contained in:
Administrator 2022-03-17 19:02:00 +01:00
parent 54780c8359
commit 0f32c85c7c
2 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,7 @@ def create_app():
load_dotenv() load_dotenv()
# Create Flask app load app.config # Create Flask app load app.config
application = APIFlask(__name__, docs_path='/api/docs') application = APIFlask(__name__, openapi_blueprint_url_prefix='api/')
application.config.from_object("config.ConfigClass") application.config.from_object("config.ConfigClass")
CORS(application, resource={ CORS(application, resource={

View File

@ -23,7 +23,6 @@ class ConfigClass(object):
SQLALCHEMY_TRACK_MODIFICATIONS = False # Avoids SQLAlchemy warning SQLALCHEMY_TRACK_MODIFICATIONS = False # Avoids SQLAlchemy warning
# openapi/Swagger config # openapi/Swagger config
LOCAL_SPEC_PATH = 'docs/openapi.json'
SERVERS = [ SERVERS = [
{ {
"name": "Production", "name": "Production",