Refactor UserController to ProfileController.
This commit is contained in:
parent
5117907a4d
commit
b76a997948
9 changed files with 23 additions and 23 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
use App\Http\Controllers\UserController;
|
||||
use App\Http\Controllers\ProfileController;
|
||||
use App\Http\Controllers\CharacterController;
|
||||
use App\Http\Controllers\CharacterProfessionController;
|
||||
use App\Http\Controllers\ProfessionController;
|
||||
|
|
@ -67,10 +67,10 @@ Route::prefix('recipes')->name('recipe.')->group(function () {
|
|||
// ----------------------------
|
||||
Route::middleware(['auth'])->group(function() {
|
||||
|
||||
Route::prefix('profile')->name('user.')->group(function () {
|
||||
Route::get('/', [UserController::class, 'index'])->name('index');
|
||||
Route::get('/edit', [UserController::class, 'edit'])->name('edit');
|
||||
Route::post('/', [UserController::class, 'update'])->name('update');
|
||||
Route::prefix('profile')->name('profile.')->group(function () {
|
||||
Route::get('/', [ProfileController::class, 'index'])->name('index');
|
||||
Route::get('/edit', [ProfileController::class, 'edit'])->name('edit');
|
||||
Route::post('/', [ProfileController::class, 'update'])->name('update');
|
||||
});
|
||||
|
||||
// Admin
|
||||
|
|
|
|||
Reference in a new issue