diff options
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') |
