summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-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