diff options
| author | Jan Friedli | 2020-07-13 08:42:30 +0200 |
|---|---|---|
| committer | Jan Friedli | 2020-07-13 08:42:30 +0200 |
| commit | b7415adfa335cd643e11846fb94e28db487f5495 (patch) | |
| tree | c6566b1164ca74177c6b7d0106d11f73dd477b7e /main.py | |
| parent | 06252d8ee45a1dd8193c3be7a74710b43e24d04c (diff) | |
added version and title
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -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 | ||
