summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorJan Friedli2020-07-13 08:42:30 +0200
committerJan Friedli2020-07-13 08:42:30 +0200
commitb7415adfa335cd643e11846fb94e28db487f5495 (patch)
treec6566b1164ca74177c6b7d0106d11f73dd477b7e /main.py
parent06252d8ee45a1dd8193c3be7a74710b43e24d04c (diff)
added version and title
Diffstat (limited to '')
-rw-r--r--main.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.py b/main.py
index 5e47531..cf75e2d 100644
--- a/main.py
+++ b/main.py
@@ -14,6 +14,10 @@ def create_app(test_config=None):
14 app.config['UPLOAD_FOLDER'] = os.environ.get('MAT2_WEB_DOWNLOAD_FOLDER', './uploads/') 14 app.config['UPLOAD_FOLDER'] = os.environ.get('MAT2_WEB_DOWNLOAD_FOLDER', './uploads/')
15 app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 # 16MB 15 app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 # 16MB
16 app.config['CUSTOM_TEMPLATES_DIR'] = 'custom_templates' 16 app.config['CUSTOM_TEMPLATES_DIR'] = 'custom_templates'
17 app.config['SWAGGER'] = {
18 'title': 'Mat2 Web API',
19 'version': '1.0.0',
20 }
17 # optionally load settings from config.py 21 # optionally load settings from config.py
18 app.config.from_object('config') 22 app.config.from_object('config')
19 23