Files
famous-ly4-ev/app-modules/cms/routes/cms-routes.php
T
Nyan Lin Paing 76f75c5581 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.
2026-08-30 14:51:57 +07:00

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');
});