summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Friedli2020-07-13 08:44:03 +0200
committerJan Friedli2020-07-13 08:44:03 +0200
commit1534dd33012635a68e8f42235d2b2e43c421a373 (patch)
treee3f49616a2b6160e44b4080ad33cfcfc6aa2a326
parentb7415adfa335cd643e11846fb94e28db487f5495 (diff)
removed unused var
-rw-r--r--README.md2
-rw-r--r--main.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index c90012a..296967c 100644
--- a/README.md
+++ b/README.md
@@ -97,7 +97,7 @@ If you go to https://matweb.info/apidocs you can find a Swagger documentation.
97 97
98## Upload Endpoint 98## Upload Endpoint
99 99
100**Endpoint:** `/api/upload` 100**Endpoint:** `/api/upload`__
101 101
102**HTTP Verbs:** POST 102**HTTP Verbs:** POST
103 103
diff --git a/main.py b/main.py
index cf75e2d..a836c13 100644
--- a/main.py
+++ b/main.py
@@ -33,7 +33,7 @@ def create_app(test_config=None):
33 33
34 # Restful API hookup 34 # Restful API hookup
35 api = Api(app) 35 api = Api(app)
36 swagger = Swagger(app) 36 Swagger(app)
37 CORS(app, resources={r"/api/*": {"origins": utils.get_allow_origin_header_value()}}) 37 CORS(app, resources={r"/api/*": {"origins": utils.get_allow_origin_header_value()}})
38 api.add_resource( 38 api.add_resource(
39 rest_api.APIUpload, 39 rest_api.APIUpload,