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:
parent
1d206b927d
commit
ea9dbf025e
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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']);
|
||||||
|
|
Loading…
Reference in a new issue