コード例 #1
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
ModuleRoute::get('admin/activities', 'AdminActivitiesController@index');
ModuleRoute::get('admin/activities/delete/all', 'AdminActivitiesController@deleteAll');
ModuleRoute::post('admin/activities/search', 'AdminActivitiesController@search');
コード例 #2
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?php

ModuleRoute::context('Visitors');
ModuleRoute::get('admin/visitors', 'AdminVisitorsController@index');
コード例 #3
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #4
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #5
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #6
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #7
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #8
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
ModuleRoute::get('auth/username/check/{username}', 'RegistrationController@checkUsername');
コード例 #9
0
ファイル: routes.php プロジェクト: exelv1/Contentify
<?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', 'show']]);
ModuleRoute::get('partners/{id}/{slug}', 'PartnersController@show');
コード例 #10
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #11
0
ファイル: routes.php プロジェクト: exelv1/Contentify
<?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');
コード例 #12
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
});
コード例 #13
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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::get('adverts/url/{id}/{slug?}', 'AdvertsController@url');
コード例 #14
0
ファイル: routes.php プロジェクト: exelv1/Contentify
ModuleRoute::put('admin/forums/config', 'AdminConfigController@update');
ModuleRoute::resource('admin/forums', 'AdminForumsController');
ModuleRoute::get('admin/forums/{id}/restore', ['as' => 'admin.forums.restore', 'uses' => 'AdminForumsController@restore']);
ModuleRoute::post('admin/forums/search', 'AdminForumsController@search');
ModuleRoute::get('forums', 'ForumsController@index');
ModuleRoute::get('forums/{id}/{slug?}', 'ForumsController@show')->where('id', '[0-9]+');
ModuleRoute::get('forums/threads/{id}/{slug?}', 'ThreadsController@show')->where('id', '[0-9]+');
ModuleRoute::get('forums/threads/new', 'ThreadsController@showNew');
Route::group(array('middleware' => 'auth'), function () {
    ModuleRoute::get('forums/threads/create/{id}', 'ThreadsController@create');
    ModuleRoute::post('forums/threads/{id}', 'ThreadsController@store');
    ModuleRoute::get('forums/threads/edit/{id}', 'ThreadsController@edit');
    ModuleRoute::put('forums/threads/{id}', 'ThreadsController@update');
    ModuleRoute::get('forums/threads/sticky/{id}', 'ThreadsController@sticky');
    ModuleRoute::get('forums/threads/closed/{id}', 'ThreadsController@closed');
    ModuleRoute::get('forums/threads/move/{id}', 'ThreadsController@getMove');
    ModuleRoute::post('forums/threads/move/{id}', 'ThreadsController@postMove');
    ModuleRoute::get('forums/threads/delete/{id}', 'ThreadsController@delete');
});
ModuleRoute::post('forums/search', 'ThreadsController@search');
ModuleRoute::get('forums/posts/perma/{id}/{slug?}', 'PostsController@show');
Route::group(array('middleware' => 'auth'), function () {
    ModuleRoute::get('forums/posts/{id}', 'PostsController@get');
    ModuleRoute::get('forums/posts/delete/{id}', 'PostsController@delete');
    ModuleRoute::post('forums/posts/{id}', 'PostsController@store');
    ModuleRoute::get('forums/posts/edit/{id}', 'PostsController@edit');
    ModuleRoute::get('forums/posts/report/{id}', 'PostsController@report');
    ModuleRoute::put('forums/posts/{id}', 'PostsController@update');
});
ModuleRoute::get('admin/forum-reports', ['as' => 'admin.reports.index', 'uses' => 'AdminReportsController@index']);
ModuleRoute::delete('admin/forum-reports/{id}', ['as' => 'admin.reports.destroy', 'uses' => 'AdminReportsController@destroy']);
コード例 #15
0
ファイル: routes.php プロジェクト: exelv1/Contentify
<?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');
コード例 #16
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #17
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
});
コード例 #18
0
ファイル: routes.php プロジェクト: exelv1/Contentify
<?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');
コード例 #19
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #20
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #21
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #22
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #23
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #24
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #25
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #26
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #27
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #28
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?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');
コード例 #29
0
ファイル: routes.php プロジェクト: exelv1/Contentify
<?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');
コード例 #30
0
ファイル: routes.php プロジェクト: chirilo/Contentify
<?php

ModuleRoute::context('Images');
ModuleRoute::resource('admin/images', 'AdminImagesController');
ModuleRoute::post('admin/images/search', 'AdminImagesController@search');
ModuleRoute::get('editor-images', 'EditorImagesController@index');
ModuleRoute::post('editor-images', 'EditorImagesController@search');