diff options
Diffstat (limited to 'indoteknik_api/controllers/api_v1/wishlist.py')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/wishlist.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_api/controllers/api_v1/wishlist.py b/indoteknik_api/controllers/api_v1/wishlist.py index 3582c4ba..61fa960f 100644 --- a/indoteknik_api/controllers/api_v1/wishlist.py +++ b/indoteknik_api/controllers/api_v1/wishlist.py @@ -6,7 +6,7 @@ from odoo.http import request class Wishlist(controller.Controller): prefix = '/api/v1/' - @http.route(prefix + 'wishlist/<user_id>', auth='public', methods=['GET']) + @http.route(prefix + 'wishlist', auth='public', methods=['GET']) def get_wishlist_by_user_id(self, **kw): if not self.authenticate(): return self.response(code=401, description='Unauthorized') @@ -25,7 +25,7 @@ class Wishlist(controller.Controller): } return self.response(data) - @http.route(prefix + 'wishlist/<user_id>/create-or-delete', auth='public', methods=['POST'], csrf=False) + @http.route(prefix + 'wishlist/create-or-delete', auth='public', methods=['POST'], csrf=False) def create_or_delete_wishlist(self, **kw): if not self.authenticate(): return self.response(code=401, description='Unauthorized') |
