diff options
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -34,7 +34,8 @@ def create_app(test_config=None): | |||
| 34 | 34 | ||
| 35 | # Restful API hookup | 35 | # Restful API hookup |
| 36 | app.register_blueprint(rest_api.api_bp) | 36 | app.register_blueprint(rest_api.api_bp) |
| 37 | app.json_encoder = LazyJSONEncoder | 37 | app.json_provider_class = LazyJSONEncoder |
| 38 | app.json = LazyJSONEncoder(app) | ||
| 38 | 39 | ||
| 39 | dirname = os.path.dirname(__file__) | 40 | dirname = os.path.dirname(__file__) |
| 40 | with open(os.path.join(dirname, 'matweb/oas/components.yml')) as file: | 41 | with open(os.path.join(dirname, 'matweb/oas/components.yml')) as file: |
