コード例 #1
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');
コード例 #2
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');
});
コード例 #3
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');
});
コード例 #4
0
ファイル: routes.php プロジェクト: exelv1/Contentify
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']);