Adopt class based routes

This commit is contained in:
Shift
2023-01-07 20:33:11 +00:00
parent 41cb65c70c
commit 962785f858
6 changed files with 463 additions and 448 deletions

View File

@@ -1,12 +1,15 @@
<?php
use App\Http\Controllers\App;
use Illuminate\Support\Facades\Route;
\Event::listen('settings.system', function () {
$controller = new \App\FaveoStorage\Controllers\SettingsController();
echo $controller->settingsIcon();
});
Route::middleware('web')->group(function () {
Route::get('storage', 'App\FaveoStorage\Controllers\SettingsController@settings')->name('storage');
Route::post('storage', 'App\FaveoStorage\Controllers\SettingsController@postSettings')->name('post.storage');
Route::get('attachment', 'App\FaveoStorage\Controllers\SettingsController@attachment')->name('attach');
Route::get('storage', [App\FaveoStorage\Controllers\SettingsController::class, 'settings'])->name('storage');
Route::post('storage', [App\FaveoStorage\Controllers\SettingsController::class, 'postSettings'])->name('post.storage');
Route::get('attachment', [App\FaveoStorage\Controllers\SettingsController::class, 'attachment'])->name('attach');
});