예제 #1
0
<?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');
예제 #2
0
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']);
예제 #3
0
<?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');
예제 #4
0
<?php

ModuleRoute::context('Config');
ModuleRoute::get('admin/config/log/clear', 'AdminConfigController@clearLog');
ModuleRoute::controller('admin/config', 'AdminConfigController');
ModuleRoute::put('admin/config', ['as' => 'admin.config.update', 'uses' => 'AdminConfigController@update']);