forked from projects/fipamo
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:
parent
d8ed8b62c0
commit
1d206b927d
3 changed files with 2 additions and 12 deletions
|
@ -90,11 +90,4 @@ class SettingsAPIController extends Controller
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
//init stuff
|
||||
public function setupFresh(Request $request)
|
||||
{
|
||||
$body = json_decode($request->getContent());
|
||||
dd($body);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@ class SettingsService
|
|||
}
|
||||
|
||||
$this->docs = $docService;
|
||||
$this->contents = $contentService;
|
||||
}
|
||||
|
||||
protected function loadSettings()
|
||||
|
|
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue