Skip to content

Commit

Permalink
break breeze routes into new blog route file
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Jan 23, 2024
1 parent 875cae1 commit 1679f43
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
16 changes: 16 additions & 0 deletions routes/blog.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

use App\Http\Controllers\ProfileController;
use Illuminate\Foundation\Application;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;

Route::get('/dashboard', function () {
return Inertia::render('Dashboard');
})->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');
});
11 changes: 1 addition & 10 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,5 @@
Route::get('/capabilities', \App\Http\Controllers\Views\ShowCapabiltiesController::class)->name('capabilities');
Route::get('/portfolio', \App\Http\Controllers\Views\ShowProjectsController::class)->name('projects');

Route::get('/dashboard', function () {
return Inertia::render('Dashboard');
})->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';
require __DIR__.'/blog.php';

0 comments on commit 1679f43

Please sign in to comment.