summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-11-16 09:09:09 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-11-16 09:09:09 +0700
commitf98c6dce9552549f039133e8e99978b656076d17 (patch)
treeb995acaeaae351673632fcc7d6f973217869356a /indoteknik_api/controllers/api_v1
parent5102c2a866daec248e3903fbfb7b8bd87bb0ef52 (diff)
Update endpoint
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-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 c84d58b1..3582c4ba 100644
--- a/indoteknik_api/controllers/api_v1/wishlist.py
+++ b/indoteknik_api/controllers/api_v1/wishlist.py
@@ -25,8 +25,8 @@ class Wishlist(controller.Controller):
}
return self.response(data)
- @http.route(prefix + 'wishlist/<user_id>/toggle', auth='public', methods=['POST'], csrf=False)
- def toggle_wishlist(self, **kw):
+ @http.route(prefix + 'wishlist/<user_id>/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')