diff --git a/public/assets/js/dashboard/group.js b/public/assets/js/dashboard/group.js index 29ed050..eead3b1 100644 --- a/public/assets/js/dashboard/group.js +++ b/public/assets/js/dashboard/group.js @@ -79,7 +79,7 @@ $(function() { $.ajax( { - url: '/dashboard/group/delete', + url: 'group/delete', type: "DELETE", datatype: "json", data: {'groupId' : $(this).data('group-id')} diff --git a/public/assets/js/dashboard/user.js b/public/assets/js/dashboard/user.js index 24b4612..2414c80 100644 --- a/public/assets/js/dashboard/user.js +++ b/public/assets/js/dashboard/user.js @@ -64,7 +64,7 @@ $(function() { $.ajax( { - "url": "/dashboard/user/delete", + "url": "user/delete", "type": "DELETE", "datatype": "json", "data": {'userId' : $(this).data('user-id')}