First commit
This commit is contained in:
commit
7cf3558ba7
12933 changed files with 1180047 additions and 0 deletions
30
packages/flux-cms/core/routes/web.php
Normal file
30
packages/flux-cms/core/routes/web.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use FluxCms\Core\Http\Controllers\PageController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Flux CMS Frontend Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These routes handle the frontend display of CMS content. They should be
|
||||
| placed at the END of your routes/web.php file to avoid conflicts.
|
||||
|
|
||||
*/
|
||||
|
||||
// SEO Routes
|
||||
Route::get('/sitemap.xml', [PageController::class, 'sitemap'])->name('sitemap');
|
||||
Route::get('/robots.txt', [PageController::class, 'robots'])->name('robots');
|
||||
|
||||
// Blog Routes (if using blog functionality)
|
||||
Route::prefix('blog')->name('blog.')->group(function () {
|
||||
Route::get('/', [PageController::class, 'blogIndex'])->name('index');
|
||||
Route::get('/{slug}', [PageController::class, 'blogPost'])->name('show');
|
||||
});
|
||||
|
||||
// CMS Pages - MUST BE LAST!
|
||||
// This catch-all route should be placed at the very end of your routes file
|
||||
Route::get('/{slug?}', [PageController::class, 'show'])
|
||||
->where('slug', '.*')
|
||||
->name('cms.page');
|
||||
Loading…
Add table
Add a link
Reference in a new issue