api.php 734 B

12345678910111213141516171819202122
  1. <?php
  2. use Illuminate\Http\Request;
  3. use Illuminate\Support\Facades\Route;
  4. /*
  5. |--------------------------------------------------------------------------
  6. | API Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here is where you can register API routes for your application. These
  10. | routes are loaded by the RouteServiceProvider within a group which
  11. | is assigned the "api" middleware group. Enjoy building your API!
  12. |
  13. */
  14. // 登录
  15. Route::any('login/index', [App\Http\Controllers\Api\Login::class, 'index']);
  16. //手机密码登录
  17. Route::any('login/mobile', [App\Http\Controllers\Api\Login::class, 'mobile']);
  18. // 退出登录
  19. Route::any('login/out', [App\Http\Controllers\Api\Login::class, 'out']);