Roman_applicant-site/routes/web.php

19 lines
637 B
PHP
Raw Normal View History

2024-01-10 12:57:24 +03:00
<?php
2024-01-10 14:00:03 +03:00
use App\Http\Controllers\ProfileController;
2024-01-10 12:57:24 +03:00
use Illuminate\Support\Facades\Route;
2024-01-10 14:00:03 +03:00
Route::get('/dashboard', function () {
2024-01-19 10:48:00 +03:00
return view('admin');
2024-01-10 14:00:03 +03:00
})->middleware(['auth', 'verified'])->name('dashboard');
Route::middleware('auth')->group(function () {
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
});
require __DIR__ . '/auth.php';
2024-02-07 16:32:42 +03:00
require __DIR__ . '/admin.php';
require __DIR__ . '/pages/web.php';