index.php 372 B

1234567891011
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::group(['domain' => env('APP_HOST_WEB'), 'prefix' => 'index'],function (){
  4. Route::match(['get','post'],'website', 'IndexController@getWebsite')->name('index.website');//获取网站基础信息
  5. Route::match(['get','post'],'banner', 'IndexController@getBanners')->name('index.banner');//获取网站轮播
  6. });