Jelajahi Sumber

feat: 新增路由模版,配置模版

runphp 6 bulan lalu
induk
melakukan
efa6d6bf63

+ 5 - 0
templates/config.php.tpl.php

@@ -0,0 +1,5 @@
+<?= "<?php\n" ?>
+declare(strict_types=1);
+
+return [
+];

+ 9 - 0
templates/route/admin.php.tpl.php

@@ -0,0 +1,9 @@
+<?= "<?php\n" ?>
+declare(strict_types=1);
+
+
+use think\facade\Route;
+
+// Admin路由
+// 路由前缀: /admin/<?= $id ?>
+

+ 9 - 0
templates/route/api.php.tpl.php

@@ -0,0 +1,9 @@
+<?= "<?php\n" ?>
+declare(strict_types=1);
+
+
+use think\facade\Route;
+
+// API路由
+// 路由前缀: /api/<?= $id ?>
+