news.php 413 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\api\route;
  3. use app\api\middleware\AllowOriginMiddleware;
  4. use app\api\middleware\SeretKeyMiddleware;
  5. use app\api\middleware\UserMiddleware;
  6. use think\facade\Config;
  7. use think\facade\Route;
  8. use think\Response;
  9. /**
  10. * 无需授权的接口
  11. */
  12. Route::group('news',function () {
  13. //基本信息
  14. Route::rule('about','v1.news/about');
  15. })->middleware([
  16. AllowOriginMiddleware::class
  17. ]);