login.php 818 B

12345678910111213141516171819202122
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2018-2020 rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: TABLE ME
  8. // +----------------------------------------------------------------------
  9. // | Date: 2020-09-05 09:21
  10. // +----------------------------------------------------------------------
  11. use app\api\middleware\AllowOriginMiddleware;
  12. use app\api\middleware\SeretKeyMiddleware;
  13. use think\facade\Route;
  14. Route::group('login', function () {
  15. //微信登录
  16. Route::rule('weixinLogin','Login/weixinLogin');
  17. })->middleware([
  18. AllowOriginMiddleware::class,
  19. SeretKeyMiddleware::class
  20. ]);