From 1d206b927d8b2ac4a45b2b5db466cbdd54614df9 Mon Sep 17 00:00:00 2001 From: ro Date: Fri, 26 Jul 2024 12:43:45 -0600 Subject: [PATCH] navigation sync bug fix, api & settings cleanup there was an error when reordering menu items due to a missing variable to a service class, so that was patched also removed unecessary code from api url definitions and settings service class --- app/Http/Controllers/API/SettingsAPIController.php | 7 ------- app/Services/Data/SettingsService.php | 3 ++- routes/api.php | 4 ---- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/app/Http/Controllers/API/SettingsAPIController.php b/app/Http/Controllers/API/SettingsAPIController.php index 782ba59..ad97d9a 100644 --- a/app/Http/Controllers/API/SettingsAPIController.php +++ b/app/Http/Controllers/API/SettingsAPIController.php @@ -90,11 +90,4 @@ class SettingsAPIController extends Controller ); } } - - //init stuff - public function setupFresh(Request $request) - { - $body = json_decode($request->getContent()); - dd($body); - } } diff --git a/app/Services/Data/SettingsService.php b/app/Services/Data/SettingsService.php index a5ff98e..44ae96c 100644 --- a/app/Services/Data/SettingsService.php +++ b/app/Services/Data/SettingsService.php @@ -23,7 +23,8 @@ class SettingsService $this->tags = []; } - $this->docs = $docService; + $this->docs = $docService; + $this->contents = $contentService; } protected function loadSettings() diff --git a/routes/api.php b/routes/api.php index afc94cb..b1bff9c 100644 --- a/routes/api.php +++ b/routes/api.php @@ -18,10 +18,6 @@ use App\Http\Controllers\API\MailAPIController; | */ -//site setup -Route::post("/v1/init", [InitAPIController::class, 'setupFresh']); -Route::post("/v1/restore", [InitAPIController::class, 'setupRestore']); - //handle page editing actions Route::group(['prefix' => '/admin/page', 'middleware' => 'validate.key'], function () { Route::put("/update", [PageAPIController::class, 'update']);