新增sietmap

This commit is contained in:
2022-03-16 10:40:08 +08:00
parent d96a879a5d
commit 3ab345f41c
3 changed files with 66 additions and 2 deletions

View File

@@ -8,4 +8,12 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
use app\common\tools\Sitemap;
use think\facade\Route;
Route::rule('/site.xml', function () {
$content = Sitemap::init();
return xml($content);
});