summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1/product.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-11-01 09:48:23 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-11-01 09:48:23 +0700
commitd57c3cebb92a87686b14b794e9dd1a4e35e0e6cf (patch)
treee899b39936cfee365ca41d9f6f9eab1a6712e7ae /indoteknik_api/controllers/api_v1/product.py
parent742213021f5e301518512c4f190b91df8182337a (diff)
parentb2ac5d8be2d426dd968cbc9244377ecf3040800b (diff)
Merge branch 'master'
Diffstat (limited to 'indoteknik_api/controllers/api_v1/product.py')
-rw-r--r--indoteknik_api/controllers/api_v1/product.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/product.py b/indoteknik_api/controllers/api_v1/product.py
index d8006873..15f75d98 100644
--- a/indoteknik_api/controllers/api_v1/product.py
+++ b/indoteknik_api/controllers/api_v1/product.py
@@ -84,7 +84,7 @@ class Product(controller.Controller):
return self.response(data)
- @http.route(prefix + 'product/<id>/similar', auth='public', methods=['GET'])
+ @http.route(prefix + 'product/<id>/similar', auth='public', methods=['GET'], cors="*")
def get_product_similar_by_id(self, **kw):
if not self.authenticate():
return self.response(code=401, description='Unauthorized')