Try to fix docs
This commit is contained in:
parent
54780c8359
commit
0f32c85c7c
@ -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={
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user