From 33b9ec81f1ccd7d99da60c606e6bfce8d6627132 Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Wed, 16 Nov 2022 09:17:22 +0700 Subject: Update cart and wishlist endpoint --- indoteknik_api/controllers/api_v1/wishlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indoteknik_api/controllers/api_v1/wishlist.py') 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/', 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//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') -- cgit v1.2.3