mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
新增sietmap
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user