25 lines
1.0 KiB
PHP
25 lines
1.0 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Modules\Sitemap\Http\Controllers\SitemapController;
|
|
use Modules\Sitemap\Http\Controllers\SitemapConfigController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/sitemap.xml', [SitemapController::class, 'index'])->name('sitemap.index');
|
|
|
|
Route::group(['middleware' => ['web', 'auth', 'permission'], 'prefix' => 'admin/'], function () {
|
|
Route::get('/sitemap/generate', [SitemapController::class, 'generate'])->name('sitemap.generate');
|
|
Route::post('/sitemap-config/toggle', [SitemapConfigController::class, 'toggle'])->name('sitemapConfig.toggle');
|
|
Route::resource('sitemap-config', SitemapConfigController::class)->names('sitemapConfig');
|
|
});
|