Skip to content

Commit

Permalink
Merge branch 'release/1.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
werner-freytag committed May 16, 2022
2 parents 4ae8556 + 5111b16 commit a2b9d01
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<?php

Route::get(config('pecotamic.sitemap.url'), 'SitemapController@show');
use Illuminate\Support\Facades\Route;
use Statamic\Facades\Site;
use Statamic\Facades\URL;

Site::all()->map(function ($site) {
return URL::makeRelative($site->url());
})->unique()->each(function ($sitePrefix) {
Route::group(['prefix' => $sitePrefix], static function () {
Route::get(config('pecotamic.sitemap.url'), 'SitemapController@show');
});
});

0 comments on commit a2b9d01

Please sign in to comment.