diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-11-01 15:08:13 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-11-01 15:08:13 +0700 |
| commit | aace8a790f450a11fb4d9eb4ed1dab2a09225b42 (patch) | |
| tree | 3ef75418fd074a4c3b387d2020da03c1c3db3c65 | |
| parent | 253f43418b568fd4d32964e67800feb32b668488 (diff) | |
add allowed method
| -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..26a7f1ec 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', 'OPTIONS']) def get_product_similar_by_id(self, **kw): if not self.authenticate(): return self.response(code=401, description='Unauthorized') |
