platform.php 380 B

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