<?php ModuleRoute::context('Example'); ModuleRoute::controller('example', 'ExampleController');
<?php ModuleRoute::context('Auth'); ModuleRoute::controller('auth/registration', 'RegistrationController'); ModuleRoute::controller('auth/login', 'LoginController', ['getIndex' => 'login']); ModuleRoute::controller('auth/logout', 'LogoutController', ['getIndex' => 'logout']); ModuleRoute::controller('auth/restore', 'RestorePasswordController');
<?php ModuleRoute::context('Games'); ModuleRoute::resource('admin/games', 'AdminGamesController'); ModuleRoute::get('admin/games/{id}/restore', ['as' => 'admin.games.restore', 'uses' => 'AdminGamesController@restore']); ModuleRoute::post('admin/games/search', 'AdminGamesController@search');
<?php ModuleRoute::context('Streams'); ModuleRoute::resource('admin/streams', 'AdminStreamsController'); ModuleRoute::get('admin/streams/{id}/restore', ['as' => 'admin.streams.restore', 'uses' => 'AdminStreamsController@restore']); ModuleRoute::post('admin/streams/search', 'AdminStreamsController@search'); ModuleRoute::resource('streams', 'StreamsController', ['only' => ['index', 'show']]); ModuleRoute::get('streams/{id}/{slug}', 'StreamsController@show');
<?php ModuleRoute::context('Dashboard'); ModuleRoute::controller('admin/dashboard', 'AdminDashboardController');
<?php ModuleRoute::context('Matches'); ModuleRoute::resource('admin/matches', 'AdminMatchesController'); ModuleRoute::get('admin/matches/{id}/restore', ['as' => 'admin.matches.restore', 'uses' => 'AdminMatchesController@restore']); ModuleRoute::post('admin/matches/search', 'AdminMatchesController@search'); ModuleRoute::post('admin/matches/scores/store', 'AdminMatchScoresController@store'); ModuleRoute::delete('admin/matches/scores/{id}', 'AdminMatchScoresController@destroy'); ModuleRoute::put('admin/matches/scores/{id}', 'AdminMatchScoresController@update'); ModuleRoute::get('matches', ['as' => 'matches.index', 'uses' => 'MatchesController@index']); ModuleRoute::get('matches/{id}', ['as' => 'matches.show', 'uses' => 'MatchesController@show']); ModuleRoute::post('matches/search', 'MatchesController@search');
<?php ModuleRoute::context('Events'); ModuleRoute::resource('admin/events', 'AdminEventsController'); ModuleRoute::get('admin/events/{id}/restore', ['as' => 'admin.events.restore', 'uses' => 'AdminEventsController@restore']); ModuleRoute::post('admin/events/search', 'AdminEventsController@search'); ModuleRoute::resource('events', 'EventsController', ['only' => ['index', 'show']]); ModuleRoute::get('events/{id}/{slug}', 'EventsController@show'); ModuleRoute::get('calendar/{year?}/{month?}', 'EventsController@calendar');
<?php ModuleRoute::context('Diag'); ModuleRoute::controller('admin/diag', 'AdminDiagController');
<?php ModuleRoute::context('Contact'); ModuleRoute::resource('admin/contact', 'AdminContactController', ['only' => ['index', 'show', 'destroy']]); ModuleRoute::get('admin/contact/{id}/restore', ['as' => 'admin.contact.restore', 'uses' => 'AdminContactController@restore']); ModuleRoute::get('contact', 'ContactController@index'); ModuleRoute::post('contact/store', 'ContactController@store'); ModuleRoute::get('join-us', 'JoinController@index'); ModuleRoute::post('join-us/store', 'JoinController@store');
<?php ModuleRoute::context('News'); ModuleRoute::resource('admin/newscats', 'AdminNewscatsController'); ModuleRoute::get('admin/newscats/{id}/restore', ['as' => 'admin.newscats.restore', 'uses' => 'AdminNewscatsController@restore']); ModuleRoute::post('admin/newscats/search', 'AdminNewscatsController@search'); ModuleRoute::resource('admin/news', 'AdminNewsController'); ModuleRoute::get('admin/news/{id}/restore', ['as' => 'admin.news.restore', 'uses' => 'AdminNewsController@restore']); ModuleRoute::post('admin/news/search', 'AdminNewsController@search'); ModuleRoute::get('news', 'NewsController@index'); ModuleRoute::get('news/{id}/{slug?}', ['as' => 'news.show', 'uses' => 'NewsController@show'])->where('id', '[0-9]+'); ModuleRoute::get('news/{slug}', 'NewsController@showBySlug'); ModuleRoute::post('news/search', 'NewsController@search');
<?php ModuleRoute::context('Partners'); ModuleRoute::resource('admin/partnercats', 'AdminPartnercatsController'); ModuleRoute::get('admin/partnercats/{id}/restore', ['as' => 'admin.partnercats.restore', 'uses' => 'AdminPartnercatsController@restore']); ModuleRoute::post('admin/partnercats/search', 'AdminPartnercatsController@search'); ModuleRoute::resource('admin/partners', 'AdminPartnersController'); ModuleRoute::get('admin/partners/{id}/restore', ['as' => 'admin.partners.restore', 'uses' => 'AdminPartnersController@restore']); ModuleRoute::post('admin/partners/search', 'AdminPartnersController@search'); ModuleRoute::resource('partners', 'PartnersController', ['only' => ['index']]); ModuleRoute::get('partners/url/{id}/{slug?}', 'PartnersController@url');
<?php ModuleRoute::context('Opponents'); ModuleRoute::resource('admin/opponents', 'AdminOpponentsController'); ModuleRoute::get('admin/opponents/{id}/restore', ['as' => 'admin.opponents.restore', 'uses' => 'AdminOpponentsController@restore']); ModuleRoute::get('admin/opponents/{id}/lineup', 'AdminOpponentsController@lineup'); ModuleRoute::post('admin/opponents/search', 'AdminOpponentsController@search');
<?php ModuleRoute::context('Adverts'); ModuleRoute::resource('admin/advertcats', 'AdminAdvertcatsController'); ModuleRoute::get('admin/advertcats/{id}/restore', ['as' => 'admin.advertcats.restore', 'uses' => 'AdminAdvertcatsController@restore']); ModuleRoute::post('admin/advertcats/search', 'AdminAdvertcatsController@search'); ModuleRoute::resource('admin/adverts', 'AdminAdvertsController'); ModuleRoute::get('admin/adverts/{id}/restore', ['as' => 'admin.adverts.restore', 'uses' => 'AdminAdvertsController@restore']); ModuleRoute::post('admin/adverts/search', 'AdminAdvertsController@search'); ModuleRoute::resource('adverts', 'AdvertsController', ['only' => ['show']]); ModuleRoute::get('adverts/{id}/{slug}', 'AdvertsController@show');
<?php ModuleRoute::context('Teams'); ModuleRoute::resource('admin/teams', 'AdminTeamsController'); ModuleRoute::get('admin/teams/{id}/restore', ['as' => 'admin.teams.restore', 'uses' => 'AdminTeamsController@restore']); ModuleRoute::get('admin/teams/{id}/lineup', 'AdminTeamsController@lineup'); ModuleRoute::post('admin/teams/search', 'AdminTeamsController@search'); ModuleRoute::resource('teams', 'TeamsController', ['only' => ['index', 'show']]); ModuleRoute::get('teams/{id}/{slug}', 'TeamsController@show'); ModuleRoute::controller('admin/members', 'AdminMembersController'); ModuleRoute::post('admin/members/search', 'AdminMembersController@search');
<?php ModuleRoute::context('Videos'); ModuleRoute::resource('admin/videos', 'AdminVideosController'); ModuleRoute::get('admin/videos/{id}/restore', ['as' => 'admin.videos.restore', 'uses' => 'AdminVideosController@restore']); ModuleRoute::post('admin/videos/search', 'AdminVideosController@search'); ModuleRoute::resource('videos', 'VideosController', ['only' => ['index', 'show']]); ModuleRoute::get('videos/{id}/{slug}', 'VideosController@show'); ModuleRoute::post('videos/search', 'VideosController@search');
<?php ModuleRoute::context('Groups'); ModuleRoute::resource('admin/groups', 'AdminGroupsController'); ModuleRoute::post('admin/groups/search', 'AdminGroupsController@search');
<?php ModuleRoute::context('Tournaments'); ModuleRoute::resource('admin/tournaments', 'AdminTournamentsController'); ModuleRoute::get('admin/tournaments/{id}/restore', ['as' => 'admin.tournaments.restore', 'uses' => 'AdminTournamentsController@restore']); ModuleRoute::post('admin/tournaments/search', 'AdminTournamentsController@search');
<?php ModuleRoute::context('Awards'); ModuleRoute::resource('admin/awards', 'AdminAwardsController'); ModuleRoute::get('admin/awards/{id}/restore', ['as' => 'admin.awards.restore', 'uses' => 'AdminAwardsController@restore']); ModuleRoute::post('admin/awards/search', 'AdminAwardsController@search'); ModuleRoute::resource('awards', 'AwardsController', ['only' => ['index']]); ModuleRoute::post('awards/search', 'AwardsController@search');
<?php ModuleRoute::context('Pages'); ModuleRoute::resource('admin/pages', 'AdminPagesController'); ModuleRoute::get('admin/pages/{id}/restore', ['as' => 'admin.pages.restore', 'uses' => 'AdminPagesController@restore']); ModuleRoute::post('admin/pages/search', 'AdminPagesController@search'); ModuleRoute::get('pages/{id}/{slug?}', ['as' => 'pages.show', 'uses' => 'CustomPagesController@show'])->where('id', '[0-9]+'); ModuleRoute::get('pages/{slug}', ['as' => 'pages.showSlug', 'uses' => 'CustomPagesController@showBySlug']); ModuleRoute::get('impressum', ['as' => 'pages.showImpressum', 'uses' => 'CustomPagesController@showImpressum']); ModuleRoute::get('articles', 'ArticlesController@index'); ModuleRoute::get('articles/{id}', ['as' => 'articles.show', 'uses' => 'ArticlesController@show']); ModuleRoute::get('articles/{id}/{slug}', 'ArticlesController@show'); ModuleRoute::get('editor-templates/{id}', 'EditorTemplatesController@show'); ModuleRoute::get('editor-templates', 'EditorTemplatesController@index');
<?php ModuleRoute::context('Countries'); ModuleRoute::resource('admin/countries', 'AdminCountriesController'); ModuleRoute::get('admin/countries/{id}/restore', ['as' => 'admin.countries.restore', 'uses' => 'AdminCountriesController@restore']); ModuleRoute::post('admin/countries/search', 'AdminCountriesController@search');
<?php ModuleRoute::context('Servers'); ModuleRoute::resource('admin/servers', 'AdminServersController'); ModuleRoute::get('admin/servers/{id}/restore', ['as' => 'admin.servers.restore', 'uses' => 'AdminServersController@restore']); ModuleRoute::get('servers', 'ServersController@index');
<?php ModuleRoute::context('Modules'); ModuleRoute::resource('admin/modules', 'AdminModulesController'); ModuleRoute::post('admin/modules/search', 'AdminModulesController@search'); ModuleRoute::match(['GET', 'POST'], 'admin/modules/{name}/install/{step?}', ['as' => 'modules.install', 'uses' => 'AdminModulesController@install'])->where('step', '[0-9]+');
<?php ModuleRoute::context('Slides'); ModuleRoute::resource('admin/slidecats', 'AdminSlidecatsController'); ModuleRoute::get('admin/slidecats/{id}/restore', ['as' => 'admin.slidecats.restore', 'uses' => 'AdminSlidecatsController@restore']); ModuleRoute::post('admin/slidecats/search', 'AdminSlidecatsController@search'); ModuleRoute::resource('admin/slides', 'AdminSlidesController'); ModuleRoute::get('admin/slides/{id}/restore', ['as' => 'admin.slides.restore', 'uses' => 'AdminSlidesController@restore']); ModuleRoute::post('admin/slides/search', 'AdminSlidesController@search');
<?php ModuleRoute::context('Downloads'); ModuleRoute::resource('admin/downloadcats', 'AdminDownloadcatsController'); ModuleRoute::get('admin/downloadcats/{id}/restore', ['as' => 'admin.downloadcats.restore', 'uses' => 'AdminDownloadcatsController@restore']); ModuleRoute::post('admin/downloadcats/search', 'AdminDownloadcatsController@search'); ModuleRoute::resource('admin/downloads', 'AdminDownloadsController'); ModuleRoute::get('admin/downloads/{id}/restore', ['as' => 'admin.downloads.restore', 'uses' => 'AdminDownloadsController@restore']); ModuleRoute::post('admin/downloads/search', 'AdminDownloadsController@search'); ModuleRoute::resource('downloads', 'DownloadsController', ['only' => ['index', 'show']]); ModuleRoute::get('downloads/category/{id}/{slug}', 'DownloadsController@showCategory'); ModuleRoute::get('downloads/{id}/{slug}', 'DownloadsController@show'); ModuleRoute::post('downloads/perform/{id}', 'DownloadsController@perform'); ModuleRoute::post('downloads/search', 'DownloadsController@search');
<?php ModuleRoute::context('Visitors'); ModuleRoute::get('admin/visitors', 'AdminVisitorsController@index');
<?php ModuleRoute::context('Search'); ModuleRoute::controller('search', 'SearchController');
<?php ModuleRoute::context('Navigations'); ModuleRoute::resource('admin/navigations', 'AdminNavigationsController'); ModuleRoute::get('admin/navigations/{id}/restore', ['as' => 'admin.navigations.restore', 'uses' => 'AdminNavigationsController@restore']); ModuleRoute::post('admin/navigations/search', 'AdminNavigationsController@search');
<?php ModuleRoute::context('Friends'); Route::group(array('middleware' => 'auth'), function () { ModuleRoute::get('friends/{id}', 'FriendsController@show'); ModuleRoute::get('friends/add/{id}', 'FriendsController@add'); ModuleRoute::get('friends/confirm/{id}', 'FriendsController@confirm'); ModuleRoute::delete('friends/{id}', 'FriendsController@destroy'); });
<?php ModuleRoute::context('Users'); ModuleRoute::get('users/{id}/password', 'UsersController@editPassword'); ModuleRoute::put('users/{id}/password', 'UsersController@updatePassword'); ModuleRoute::resource('users', 'UsersController', ['only' => ['index', 'show', 'edit', 'update']]); ModuleRoute::get('users/{id}/{slug}', 'UsersController@show'); ModuleRoute::post('users/search', 'UsersController@search'); ModuleRoute::resource('admin/users', 'AdminUsersController', ['only' => ['index', 'edit', 'update']]); ModuleRoute::post('admin/users/search', 'AdminUsersController@search'); ModuleRoute::post('admin/users/{id}/{ban}', 'AdminUsersController@ban');
<?php ModuleRoute::context('Messages'); Route::group(array('middleware' => 'auth'), function () { ModuleRoute::get('messages/{id}/{slug?}', 'MessagesController@show')->where('id', '[0-9]+'); ModuleRoute::get('messages/create/{username?}', 'MessagesController@create'); ModuleRoute::get('messages/reply/{id}/{slug?}', 'MessagesController@reply')->where('id', '[0-9]+'); ModuleRoute::post('messages', 'MessagesController@store'); ModuleRoute::delete('messages/{id}', 'MessagesController@destroy'); ModuleRoute::resource('messages/inbox', 'InboxController', ['only' => ['index']]); ModuleRoute::post('messages/inbox/search', 'InboxController@search'); ModuleRoute::resource('messages/outbox', 'OutboxController', ['only' => ['index']]); ModuleRoute::post('messages/outbox/search', 'OutboxController@search'); });