mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
fc193fdf1d
* chore: bump dependencies, fix StyleCI config, community docs * style: fix StyleCI findings * style: fix StyleCI findings * style: fix StyleCI findings * style: fix StyleCI findings
27 lines
583 B
PHP
27 lines
583 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\Video;
|
|
|
|
class SitemapController extends Controller
|
|
{
|
|
public function index()
|
|
{
|
|
$video = Video::orderBy('updated_at', 'desc')->first();
|
|
|
|
return response()->view('sitemap.index', [
|
|
'video' => $video,
|
|
])->header('Content-Type', 'text/xml');
|
|
}
|
|
|
|
public function videos()
|
|
{
|
|
$video = Video::orderBy('updated_at', 'desc')->first();
|
|
|
|
return response()->view('sitemap.videos', [
|
|
'video' => $video,
|
|
])->header('Content-Type', 'text/xml');
|
|
}
|
|
}
|