Remove Passport and replace with Sanctum, upgrade framework to Laravel 10

This commit is contained in:
2023-06-26 12:32:38 +12:00
parent 75549590fc
commit b70a36003a
22 changed files with 1294 additions and 2865 deletions

View File

@@ -434,7 +434,7 @@
if (e.status != 412)
alert('That didnt work? Please try again....');
},
url: '{{ url('api/default') }}/'+item.attributes.itemid.nodeValue,
url: '{{ url('default') }}/'+item.attributes.itemid.nodeValue,
cache: false
})
});

View File

@@ -213,7 +213,7 @@
if (! $('#node-address').hasClass('d-none'))
$('#node-address').addClass('d-none');
$.get('{{ url('api/regions') }}'+'/'+this.value,function(data) {
$.get('{{ url('regions') }}'+'/'+this.value,function(data) {
$('#region_id').append('<option value=""></option>');
$('#region_id').append('<option value="0">No Region</option>');
$('#region_id').append('<option value="new">New Region</option>');
@@ -300,7 +300,7 @@
$('#host_id').children().remove();
var that = this;
$.get('{{ url('api/hosts') }}'+'/'+$('#zone_id').val()+'/'+this.value,function(data) {
$.get('{{ url('hosts') }}'+'/'+$('#zone_id').val()+'/'+this.value,function(data) {
$('#host_id').append('<option value=""></option>');
if (that.value !== '0')
$('#host_id').append('<option value="0">No Host</option>');
@@ -369,7 +369,7 @@
$('#hub_id').prop('disabled',true);
$('#hub_id').children().remove();
$.get('{{ url('api/hubs') }}'+'/'+$('#zone_id').val()+'/'+this.value,function(data) {
$.get('{{ url('hubs') }}'+'/'+$('#zone_id').val()+'/'+this.value,function(data) {
$('#hub_id').append('<option value="">No Hub</option>');
data.forEach(function(item) {

View File

@@ -125,7 +125,7 @@
if (e.status != 412)
alert('That didnt work? Please try again....');
},
url: '{{ url('api/system/address',[$o->id]) }}',
url: '{{ url('system/address',[$o->id]) }}',
cache: false
})
});

View File

@@ -112,7 +112,7 @@
if (e.status != 412)
alert('That didnt work? Please try again....');
},
url: '{{ url('api/system/address',[$o->id]) }}',
url: '{{ url('system/address',[$o->id]) }}',
cache: false
})
});

View File

@@ -149,7 +149,7 @@
selectOnBlur: false,
appendTo: "#address_search_results",
source: function (query,process) {
addresssearch('{{ url('api/addresses/orphan') }}',query,process);
addresssearch('{{ url('addresses/orphan') }}',query,process);
},
matcher: function () { return true; },

View File

@@ -182,7 +182,7 @@
selectOnBlur: false,
appendTo: "#system_search_results",
source: function (query,process) {
systemsearch('{{ url('api/systems/orphan') }}',query,process);
systemsearch('{{ url('systems/orphan') }}',query,process);
},
matcher: function () { return true; },