summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-11-04 11:12:05 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-11-04 11:12:05 +0700
commit9445ee96166538d1545e6e1208def1ba83cd172f (patch)
tree88afc06dd944f5d1718d17e1c563fb0f2aee7d4c /indoteknik_api/controllers/api_v1
parent01d31b1c5c1324fbae3a29a5511012711a40472b (diff)
Update rest api get product preflight
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-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 aa22a876..fd6e3477 100644
--- a/indoteknik_api/controllers/api_v1/product.py
+++ b/indoteknik_api/controllers/api_v1/product.py
@@ -7,7 +7,7 @@ import ast
class Product(controller.Controller):
prefix = '/api/v1/'
- @http.route(prefix + 'product', auth='public', methods=['GET'])
+ @http.route(prefix + 'product', auth='public', methods=['GET', 'OPTIONS'])
def get_product(self, **kw):
if not self.authenticate():
return self.response(code=401, description='Unauthorized')