summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorjf2023-06-04 16:44:53 +0200
committerjf2023-06-04 16:44:53 +0200
commitee0727bfb309a307fc8e115f967d4aced2816cd9 (patch)
treefa59ed0f79c35e225042304b977427b480441694 /main.py
parent42de0752a17a01c661e8099e51f2a939db747451 (diff)
updated flask and flasgger
Diffstat (limited to '')
-rw-r--r--main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index 0313a25..258033a 100644
--- a/main.py
+++ b/main.py
@@ -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: