You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

  1. <?php
  2. use App\Http\Controllers\ProfileController;
  3. use Illuminate\Support\Facades\Route;
  4. use Inertia\Inertia;
  5. Route::get('/', function () {
  6. return Inertia::render('Welcome', [
  7. 'canLogin' => Route::has('login'),
  8. 'canRegister' => Route::has('register')
  9. ]);
  10. });
  11. Route::get('/about', function () {
  12. return Inertia::render('About');
  13. });
  14. Route::get('/help', function () {
  15. return Inertia::render('Help');
  16. });
  17. Route::get('/privacy-policy', function () {
  18. return Inertia::render('PrivacyPolicy');
  19. });
  20. Route::get('/terms-of-use', function () {
  21. return Inertia::render('Terms of Use');
  22. });
  23. Route::get('/dashboard', function () {
  24. return Inertia::render('Dashboard');
  25. })->middleware(['auth', 'verified'])->name('dashboard');
  26. Route::middleware('auth')->group(function () {
  27. Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
  28. Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
  29. Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
  30. });
  31. require __DIR__.'/auth.php';