summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1/wishlist.py
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-11-16 09:17:22 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-11-16 09:17:22 +0700
commit33b9ec81f1ccd7d99da60c606e6bfce8d6627132 (patch)
treef9919db1b3c70b3bb1f8690577a9f0ed72845816 /indoteknik_api/controllers/api_v1/wishlist.py
parentf98c6dce9552549f039133e8e99978b656076d17 (diff)
Update cart and wishlist endpoint
Diffstat (limited to 'indoteknik_api/controllers/api_v1/wishlist.py')
-rw-r--r--indoteknik_api/controllers/api_v1/wishlist.py4
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')