distributionItem.php 1.1 KB

123456789101112131415161718192021
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::group(['domain' => env('APP_HOST'), 'prefix' => 'admin/distributionItem'],function(){
  4. Route::get('index', 'DistributionItemsController@index')->name('admin.distributionItem.index');
  5. Route::post('index', 'DistributionItemsController@index')->name('admin.distributionItem.ajax.index');
  6. Route::get('store','DistributionItemsController@store')->name('admin.distributionItem.store');
  7. Route::post('store','DistributionItemsController@store')->name('admin.distributionItem.save');
  8. Route::post('destroy/{id?}','DistributionItemsController@destroy')->name('admin.distributionItem.destroy');
  9. Route::post('destroys','DistributionItemsController@destroys')->name('admin.distributionItem.destroys');
  10. Route::get('edit/{id?}','DistributionItemsController@edit')->name('admin.distributionItem.edit');
  11. Route::post('update/{id?}','DistributionItemsController@update')->name('admin.distributionItem.update');
  12. });
  13. Route::group(['domain' => env('APP_HOST_WEB'), 'prefix' => 'distributionItem'],function (){
  14. Route::post('list', 'Front\\DistributionItemsController@index');
  15. });