news.php 579 B

12345678910111213
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::group(['domain' => env('APP_HOST'), 'prefix' => 'adminApi/news'],function (){
  4. Route::match(['get','post'],'list', 'NewsController@getList')->name('adminApi.news.list');//获取列表
  5. Route::match(['get','post'],'info', 'NewsController@getInfo')->name('adminApi.news.info');//获取详情
  6. Route::match(['get','post'],'save', 'NewsController@saveNews')->name('adminApi.news.save');//新增&编辑
  7. Route::match(['get','post'],'destroys', 'NewsController@destroys')->name('adminApi.news.destroys');//删除
  8. });