contractDistribution.php 1.2 KB

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