コード例 #1
0
ファイル: routes.php プロジェクト: st421/madison
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
/*
*   Global Route Patterns
*/
Route::pattern('annotation', '[0-9a-zA-Z_-]+');
Route::pattern('comment', '[0-9a-zA-Z_-]+');
Route::pattern('doc', '[0-9]+');
Route::pattern('user', '[0-9]+');
Route::pattern('date', '[0-9]+');
Route::pattern('group', '[0-9]+');
Route::pattern('image', '[a-zA-Z0-9-_]+\\.[a-zA-Z0-9]{2,4}');
Route::pattern('state', Doc::validStatesPattern());
/*
*   Route - Model bindings
*/
Route::model('user', 'App\\Models\\User');
Route::model('user/edit', 'App\\Models\\User');
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
*/
// Modal Routes
Route::get('modals/annotation_thanks', array('uses' => 'ModalController@getAnnotationThanksModal', 'before' => 'disable profiler'));
// Vendor Settings
Route::get('api/settings/vendors', function () {
    $uservoice = "";