inviteCode.php 1.0 KB

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