+4
-2
@@ -25,6 +25,8 @@ Route::get('/sitemap.xml', function () {
|
||||
['loc' => route('evidence.create'), 'lastmod' => $lastModified, 'changefreq' => 'monthly', 'priority' => '0.6'],
|
||||
];
|
||||
|
||||
return response()->view('sitemap', compact('urls'))
|
||||
->header('Content-Type', 'application/xml');
|
||||
$xml = view('sitemap', compact('urls'))->render();
|
||||
|
||||
return response($xml, 200)
|
||||
->header('Content-Type', 'application/xml; charset=UTF-8');
|
||||
})->name('sitemap');
|
||||
|
||||
Reference in New Issue
Block a user