api.php.tpl.php 193 B

1234567891011
  1. <?= "<?php\n" ?>
  2. declare(strict_types=1);
  3. use think\facade\Route;
  4. // API路由
  5. // 路由前缀: /api/<?= $id ?>
  6. //
  7. // 如果需要登录请添加认证中间件auth
  8. // ->middleware(['auth'])