Settings API, Part 1

the first part of the setting API has been restored, with the methods
sync, publish and nav-sync restored to working order under the new API
pattern. Documentation for the API will be completed after the upgrade
is complete.

There was also a script error when trying to edit a page from the link
menu on the dashboard, so that has been fixed as well
This commit is contained in:
ro 2024-07-26 15:10:37 -06:00
parent 1d206b927d
commit ea9dbf025e
No known key found for this signature in database
GPG key ID: 29B551CDBD4D3B50
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ export default class NavIndex {
case 'edit-item': case 'edit-item':
self.processing = false; self.processing = false;
window.location = window.location =
'/dashboard/page/edit/' + e.target.getAttribute('data-id'); '/dashboard/page/edit/' + e.target.getAttribute('data-uuid');
break; break;
} }
} }

View file

@ -26,7 +26,7 @@ Route::group(['prefix' => '/admin/page', 'middleware' => 'validate.key'], functi
}); });
//settings //settings
Route::group(['prefix' => '/v1/settings', 'middleware' => 'validate.key'], function () { Route::group(['prefix' => '/admin/settings', 'middleware' => 'validate.key'], function () {
Route::put("/publish", [SettingsAPIController::class, 'publish']); Route::put("/publish", [SettingsAPIController::class, 'publish']);
Route::put("/sync", [SettingsAPIController::class, 'sync']); Route::put("/sync", [SettingsAPIController::class, 'sync']);
Route::put("/nav-sync", [SettingsAPIController::class, 'navSync']); Route::put("/nav-sync", [SettingsAPIController::class, 'navSync']);