Move our /api routes into /ajax under web.php. The /api routes werent authenticated and may not have been using the logged in users details

This commit is contained in:
2025-04-26 15:48:27 +10:00
parent 0083e9158b
commit 21a690c6dd
8 changed files with 21 additions and 41 deletions

View File

@@ -91,7 +91,7 @@
// Get a list of attributes already on the page, so we dont double up
$.ajax({
method: 'POST',
url: '{{ url('api/schema/objectclass/attrs') }}/'+item,
url: '{{ url('ajax/schema/objectclass/attrs') }}/'+item,
cache: false,
success: function(data) {
// Render any must attributes
@@ -156,7 +156,7 @@
$.ajax({
method: 'POST',
url: '{{ url('api/schema/objectclass/attrs') }}/'+item,
url: '{{ url('ajax/schema/objectclass/attrs') }}/'+item,
cache: false,
success: function(data) {
var attrs = [];