summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1/blog.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-03-31 14:01:35 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-03-31 14:01:35 +0700
commit92ca4ca8d5e16a90c1cfa8d00248c1e12c95d9fd (patch)
tree2069fd0295c5538e8023dc7c3331e6470dd7acea /indoteknik_api/controllers/api_v1/blog.py
parent690903a2cc7a83e8ec2453a703241539016036b6 (diff)
parent4cbb23cd48f70788d440a55b552b6fa3be44ddfe (diff)
Merge branch 'release' of bitbucket.org:altafixco/indoteknik-addons into release
Diffstat (limited to 'indoteknik_api/controllers/api_v1/blog.py')
-rw-r--r--indoteknik_api/controllers/api_v1/blog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_api/controllers/api_v1/blog.py b/indoteknik_api/controllers/api_v1/blog.py
index 5f4f728e..fcca2f32 100644
--- a/indoteknik_api/controllers/api_v1/blog.py
+++ b/indoteknik_api/controllers/api_v1/blog.py
@@ -6,7 +6,7 @@ from odoo.http import request
class Blog(controller.Controller):
prefix = '/api/v1/'
- @http.route(prefix + 'blog', auth='public', methods=['GET'])
+ @http.route(prefix + 'blog', auth='public', methods=['GET', 'OPTIONS'])
@controller.Controller.must_authorized()
def get_blog(self, **kw):
limit = int(kw.get('limit', 0))
@@ -24,7 +24,7 @@ class Blog(controller.Controller):
}
return self.response(data)
- @http.route(prefix + 'blog/<id>', auth='public', methods=['GET'])
+ @http.route(prefix + 'blog/<id>', auth='public', methods=['GET', 'OPTIONS'])
@controller.Controller.must_authorized()
def get_blog_by_id(self, **kw):
id = kw.get('id')