config.php 1.6 KB

123456789101112131415161718192021222324252627
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::group(['domain' => env('APP_HOST'), 'prefix' => 'admin/config'],function(){
  4. Route::get('index', 'ConfigsController@index_new')->name('admin.config.index');
  5. Route::get('about_us', 'ConfigsController@about_us')->name('admin.config.about_us');
  6. Route::get('agreement', 'ConfigsController@agreement')->name('admin.config.agreement');
  7. Route::get('beans', 'ConfigsController@beans')->name('admin.config.beans');
  8. Route::get('order_set', 'ConfigsController@order_set')->name('admin.config.order_set');
  9. Route::get('on_order_set', 'ConfigsController@on_order_set')->name('admin.config.on_order_set');
  10. Route::post('on_order_set', 'ConfigsController@on_order_set')->name('admin.config.ajax.on_order_set');
  11. Route::get('consume', 'ConfigsController@consume')->name('admin.config.consume');
  12. Route::get('use_expense', 'ConfigsController@use_expense')->name('admin.config.use_expense');
  13. Route::post('use_expense', 'ConfigsController@use_expense')->name('admin.config.ajax.use_expense');
  14. Route::post('index', 'ConfigsController@index')->name('admin.config.ajax.index');
  15. Route::get('store','ConfigsController@store')->name('admin.config.store');
  16. Route::post('store','ConfigsController@store')->name('admin.config.save');
  17. Route::post('destroy/{id?}','ConfigsController@destroy')->name('admin.config.destroy');
  18. Route::post('destroys','ConfigsController@destroys')->name('admin.config.destroys');
  19. Route::get('edit/{id?}','ConfigsController@edit')->name('admin.config.edit');
  20. Route::post('update','ConfigsController@update_new1')->name('admin.config.update');
  21. });