web.php 987 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Web Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register web routes for your application. These
  8. | routes are loaded by the RouteServiceProvider within a group which
  9. | contains the "web" middleware group. Now create something great!
  10. |
  11. */
  12. Route::group(['domain' => env('APP_HOST')],function () {
  13. Route::get('/', function (){
  14. return redirect()->route('login');
  15. });
  16. //后台客服登录以及找回密码
  17. Route::match(['get','post'],'/service/send', 'Api\CommonController@sendSms')->name('service.send');
  18. Route::match(['get','post'],'/service/sts', 'Api\CommonController@getAliSts')->name('service.sts');
  19. });
  20. Route::group(['domain' => env('APP_HOST_WEB')],function () {
  21. //后台客服登录以及找回密码
  22. Route::match(['get','post'],'/', 'Api\CommonController@index')->name('index');
  23. });