76f75c5581
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.
13 lines
599 B
PHP
13 lines
599 B
PHP
<?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');
|
|
});
|