routes.php 1.0 KB

1234567891011121314151617181920212223
  1. <?php
  2. Route::get('', ['as' => 'admin.dashboard', function () {
  3. $content = view('admin.dashboard', [
  4. 'usersCount' => \App\User::count(),
  5. 'locationsCount' => \App\Location::count()]);
  6. return AdminSection::view($content, 'Dashboard');
  7. }]);
  8. Route::get('information', ['as' => 'admin.information', function () {
  9. $content = 'Define your information here.';
  10. return AdminSection::view($content, 'Information');
  11. }]);
  12. Route::namespace('App\Http\Admin\Telegram')->prefix('telegram')->group(function() {
  13. Route::get('/', ['as' => 'admin.setting.index', 'uses' => 'SettingController@index']);
  14. Route::post('/store', ['as' => 'admin.setting.store', 'uses' => 'SettingController@store']);
  15. Route::post('/setwebhook', ['as' => 'admin.setting.setwebhook', 'uses' => 'SettingController@setWebhook']);
  16. Route::post('/getwebhook', ['as' => 'admin.setting.getwebhookinfo', 'uses' => 'SettingController@getWebhookInfo']);
  17. Route::get('/test', ['as' => 'admin.test', 'uses' => 'SettingController@test']);
  18. });