summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-11-04 10:33:37 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-11-04 10:33:37 +0700
commit049bf2ade70720785a49c5b7b41a431fbc932e18 (patch)
tree1baf501a486dd79a0034bada37ac9e271b96c0fe /indoteknik_api/controllers/api_v1
parentd236c645aeae5b063b10f07b227e94a0ab898cb0 (diff)
Get banner preflight
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-rw-r--r--indoteknik_api/controllers/api_v1/banner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/banner.py b/indoteknik_api/controllers/api_v1/banner.py
index 60f9be85..049051b0 100644
--- a/indoteknik_api/controllers/api_v1/banner.py
+++ b/indoteknik_api/controllers/api_v1/banner.py
@@ -6,7 +6,7 @@ from odoo.http import request
class Banner(controller.Controller):
prefix = '/api/v1/'
- @http.route(prefix + 'banner', auth='public', methods=['GET'])
+ @http.route(prefix + 'banner', auth='public', methods=['GET', 'OPTIONS'])
def get_banner(self, **kw):
if not self.authenticate():
return self.response(code=401, description='Unauthorized')