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']);