summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
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')