Archived
1
0
Fork 0

Refactor UserController to ProfileController.

This commit is contained in:
Henrik Hautakoski 2021-07-20 15:38:57 +02:00
parent 5117907a4d
commit b76a997948
9 changed files with 23 additions and 23 deletions

View file

@ -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