change method url

master
Gustavo Luigi 2022-08-29 21:46:13 +02:00
parent 3a78784025
commit f5fb93e893
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,