diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-01-25 11:15:33 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-01-25 11:15:33 +0700 |
| commit | 43174c76f4ade9e49cb71809ee1f84b69e97818f (patch) | |
| tree | 411fe3edca082e250792aa143045ec3e59198279 /indoteknik_api/controllers/api_v1/content.py | |
| parent | e3157198ea3ead0de7e70c96790ba49de658e31b (diff) | |
| parent | 3883fef482c5c4cd13a6fc9dd73e51de82223b50 (diff) | |
Merge branch 'feature/rest-api' into staging
Diffstat (limited to 'indoteknik_api/controllers/api_v1/content.py')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/content.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_api/controllers/api_v1/content.py b/indoteknik_api/controllers/api_v1/content.py index 32828244..3e175dc4 100644 --- a/indoteknik_api/controllers/api_v1/content.py +++ b/indoteknik_api/controllers/api_v1/content.py @@ -6,8 +6,8 @@ from odoo.http import request class WebsiteContent(controller.Controller): prefix = '/api/v1/' - @http.route(prefix + 'banner', auth='public', methods=['GET', 'OPTIONS']) - def get_banner(self, **kw): + @http.route(prefix + 'banner/category', auth='public', methods=['GET', 'OPTIONS']) + def get_banner_by_category(self, **kw): if not self.authenticate(): return self.response(code=401, description='Unauthorized') base_url = request.env['ir.config_parameter'].get_param('web.base.url') |
