From f3f3b5f6b4b8a86f260908cc234e6806199f64ba Mon Sep 17 00:00:00 2001 From: dbarzin Date: Thu, 28 Apr 2022 17:20:30 +0200 Subject: [PATCH] :bug:fix routing issues --- resources/views/admin/configuration.blade.php | 2 +- routes/api.php | 5 +++-- routes/web.php | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/resources/views/admin/configuration.blade.php b/resources/views/admin/configuration.blade.php index f5c0ccb2..87d73a70 100644 --- a/resources/views/admin/configuration.blade.php +++ b/resources/views/admin/configuration.blade.php @@ -9,7 +9,7 @@
-
+ @method('PUT') @csrf diff --git a/routes/api.php b/routes/api.php index 59747c73..9bb29133 100644 --- a/routes/api.php +++ b/routes/api.php @@ -24,7 +24,8 @@ Route::resource('entities', API\EntityController::class); Route::resource('relations', API\RelationController::class); - Route::resource('macro-processuses', API\MacroProcessusController::class); + // TODO: fix me + // Route::resource('macro-processuses', API\MacroProcessusController::class); Route::resource('processes', API\ProcessController::class); Route::resource('operations', API\OperationController::class); Route::resource('actors', API\ActorController::class); @@ -32,7 +33,7 @@ Route::resource('tasks', API\TaskController::class); Route::resource('information', API\InformationController::class); - Route::resource('applications', API\MApplicationController::class); + Route::resource('applications', API\ApplicationController::class); Route::resource('application-blocks', API\ApplicationBlockController::class); Route::resource('application-modules', API\ApplicationModuleController::class); Route::resource('application-services', API\ApplicationServiceController::class); diff --git a/routes/web.php b/routes/web.php index d8f0cbbd..d26f3bed 100644 --- a/routes/web.php +++ b/routes/web.php @@ -230,7 +230,7 @@ // Configuration page Route::get('configuration', [Admin\ConfigurationController::class,'index'])->name('configuration'); - Route::put('configuration', [Admin\ConfigurationController::class,'save'])->name('configuration'); + Route::put('configuration/save', [Admin\ConfigurationController::class,'save'])->name('configuration.save'); // Views Route::get('report/ecosystem', [Admin\ReportController::class,'ecosystem'])->name('report.view.ecosystem');