From f5fb93e89347678bcb1b5f5a8b774c4db27654bd Mon Sep 17 00:00:00 2001 From: Gustavo Luigi Date: Mon, 29 Aug 2022 21:46:13 +0200 Subject: [PATCH] change method url --- content/master.blade.php | 2 +- content/pages/checkout.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/master.blade.php b/content/master.blade.php index b22cbb9..b5466e7 100644 --- a/content/master.blade.php +++ b/content/master.blade.php @@ -158,7 +158,7 @@ if(localStorage.getItem("products") != null) objProducts = JSON.parse(localStorage.getItem("products")); $.ajax({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, - url: "{{url('admin/contents/all')}}/"+objProducts.join(","), + url: "{{url('/contents/all')}}/"+objProducts.join(","), type: "get", cache : false, processData: false, diff --git a/content/pages/checkout.blade.php b/content/pages/checkout.blade.php index b9ddcc8..f3159e4 100644 --- a/content/pages/checkout.blade.php +++ b/content/pages/checkout.blade.php @@ -144,7 +144,7 @@ if(localStorage.getItem("products") != null) objProducts = JSON.parse(localStorage.getItem("products")); $.ajax({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, - url: "{{url('admin/contents/all')}}/"+objProducts.join(","), + url: "{{url('/contents/all')}}/"+objProducts.join(","), type: "get", cache : false, processData: false,