X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FHttp%2FControllers%2FSitemapXmlController.php;h=99e909212f2bbced0371e0b9c01f9f6ea9e00684;hb=9f54b6e8fde827556cf858818090a1dfc829624c;hp=daa3699b714d72fd4f8ee4a9e6edcbdfe5896546;hpb=a655f476292d8081a23653fc1b9228f4fb64faa4;p=alttp.git diff --git a/app/Http/Controllers/SitemapXmlController.php b/app/Http/Controllers/SitemapXmlController.php index daa3699..99e9092 100644 --- a/app/Http/Controllers/SitemapXmlController.php +++ b/app/Http/Controllers/SitemapXmlController.php @@ -4,6 +4,7 @@ namespace App\Http\Controllers; use App\Models\SitemapUrl; use App\Models\Technique; +use App\Models\TechniqueMap; use App\Models\Tournament; use Illuminate\Http\Request; @@ -22,11 +23,18 @@ class SitemapXmlController extends Controller $urls[] = $url; } + $url = new SitemapUrl(); + $url->path = '/map'; + $url->lastmod = TechniqueMap::latest()->first()->created_at; + $url->changefreq = 'monthly'; + $url->priority = 0.9; + $urls[] = $url; + $url = new SitemapUrl(); $url->path = '/tech'; $url->lastmod = Technique::where('type', '=', 'tech')->where('index', true)->latest()->first()->created_at; $url->changefreq = 'monthly'; - $url->priority = 0.5; + $url->priority = 0.8; $urls[] = $url; foreach (Technique::where('type', '=', 'tech')->where('index', true)->get() as $tech) {