common.php 1.1 KB

123456789101112131415161718192021
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::group(['domain' => env('APP_HOST_WEB'), 'prefix' => 'common'],function (){
  4. Route::match(['get','post'],'index', 'CommonController@index')->name('common.index');
  5. Route::match(['get','post'],'send', 'CommonController@sendSms')->name('common.send');
  6. Route::match(['post'],'base64', 'CommonController@base64Image')->name('common.base64');
  7. Route::match(['post'],'file', 'CommonController@fileImage')->name('common.file');
  8. Route::match(['post','get'],'js', 'CommonController@getJsConfig')->name('common.js');
  9. Route::match(['post','get'],'message', 'CommonController@getSysMessage')->name('common.message');
  10. Route::match(['post','get'],'location', 'CommonController@getLocation')->name('common.location');
  11. Route::match(['post','get'],'address', 'CommonController@getLocationAddress')->name('common.address');
  12. Route::match(['post','get'],'sts', 'CommonController@getAliSts')->name('common.sts');
  13. Route::match(['post','get'],'privacy_info', 'CommonController@getPrivacyInfo')->name('common.privacy_info');//获取隐私协议
  14. });