12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /*
- |--------------------------------------------------------------------------
- | Web Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register web routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | contains the "web" middleware group. Now create something great!
- |
- */
- Route::group(['domain' => env('APP_HOST')],function () {
- Route::get('/', function (){
- return redirect()->route('login');
- });
- //后台客服登录以及找回密码
- Route::match(['get','post'],'/service/send', 'Api\CommonController@sendSms')->name('service.send');
- Route::match(['get','post'],'/service/sts', 'Api\CommonController@getAliSts')->name('service.sts');
- });
- Route::group(['domain' => env('APP_HOST_WEB')],function () {
- //后台客服登录以及找回密码
- Route::match(['get','post'],'/', 'Api\CommonController@index')->name('index');
- });
|