summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Friedli2020-07-13 08:42:30 +0200
committerJan Friedli2020-07-13 08:42:30 +0200
commitb7415adfa335cd643e11846fb94e28db487f5495 (patch)
treec6566b1164ca74177c6b7d0106d11f73dd477b7e
parent06252d8ee45a1dd8193c3be7a74710b43e24d04c (diff)
added version and title
-rw-r--r--README.md2
-rw-r--r--main.py4
2 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 35c61b0..c90012a 100644
--- a/README.md
+++ b/README.md
@@ -93,6 +93,8 @@ If you want to add/remove dependencies you have to rebuild the container.
93 93
94# RESTful API 94# RESTful API
95 95
96If you go to https://matweb.info/apidocs you can find a Swagger documentation.
97
96## Upload Endpoint 98## Upload Endpoint
97 99
98**Endpoint:** `/api/upload` 100**Endpoint:** `/api/upload`
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