diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-10-28 15:52:47 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-10-28 15:52:47 +0700 |
| commit | 4fc52a5e56baa116268e4bbab2cf9a5c017fd0db (patch) | |
| tree | 35717dc516ee8e5b662855c09c6e12adcea9de4a /indoteknik_api/controllers/api_v1 | |
| parent | 8cd24b9dc748921ed80f1e5cc2f6f4acccffa086 (diff) | |
test add cors
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/product.py | 2 |
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') |
