Add CMS module
Static content pages (CmsPage) manageable from a new Filament resource and readable via a public API endpoint. Wired into the admin panel with its own CmsPlugin and "CMS" navigation group.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Modules\Cms\Http\Controllers\CmsPageController;
|
||||
|
||||
// CMS content (FAQ, About Us, Terms, etc.) is public and typically shown
|
||||
// before the user logs in, so unlike the catalog/routing endpoints this
|
||||
// group skips api.auth — throttle:api-read still rate-limits it by IP.
|
||||
Route::prefix('api/v1')->middleware(['api', 'throttle:api-read'])->group(function () {
|
||||
Route::get('/cms-pages', [CmsPageController::class, 'index'])->name('cms.pages.index');
|
||||
Route::get('/cms-pages/{page}', [CmsPageController::class, 'show'])->name('cms.pages.show');
|
||||
});
|
||||
Reference in New Issue
Block a user