news.php 345 B

1234567891011
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::group(['domain' => env('APP_HOST_WEB'), 'prefix' => 'news'],function (){
  4. Route::match(['get','post'],'list', 'NewsController@getList')->name('news.list');//获取新闻列表
  5. Route::match(['get','post'],'info', 'NewsController@getInfo')->name('news.info');//获取新闻详情
  6. });