login.php 336 B

123456789101112
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::group( ['domain' => env('APP_HOST'), 'prefix' => 'adminApi'],function(){
  4. Route::match(['get','post'],'login', 'LoginController@login')->name('adminApi.login');// 登录
  5. Route::match(['get','post'],'logout', 'LoginController@logout')->name('adminApi.logout');//退出
  6. });