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
This commit is contained in:
ro 2024-07-26 12:43:45 -06:00
parent d8ed8b62c0
commit 1d206b927d
No known key found for this signature in database
GPG key ID: 29B551CDBD4D3B50
3 changed files with 2 additions and 12 deletions

View file

@ -90,11 +90,4 @@ class SettingsAPIController extends Controller
); );
} }
} }
//init stuff
public function setupFresh(Request $request)
{
$body = json_decode($request->getContent());
dd($body);
}
} }

View file

@ -24,6 +24,7 @@ class SettingsService
} }
$this->docs = $docService; $this->docs = $docService;
$this->contents = $contentService;
} }
protected function loadSettings() protected function loadSettings()

View file

@ -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 //handle page editing actions
Route::group(['prefix' => '/admin/page', 'middleware' => 'validate.key'], function () { Route::group(['prefix' => '/admin/page', 'middleware' => 'validate.key'], function () {
Route::put("/update", [PageAPIController::class, 'update']); Route::put("/update", [PageAPIController::class, 'update']);