Skip to content

Instantly share code, notes, and snippets.

@svolpe43
Created September 9, 2014 04:46
Show Gist options
  • Save svolpe43/b539bb2d1d7068494f1a to your computer and use it in GitHub Desktop.
Save svolpe43/b539bb2d1d7068494f1a to your computer and use it in GitHub Desktop.
routes.php
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| 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 Closure to execute when that URI is requested.
|
*/
Route::controller('user', 'UserController');
Route::post('/', function()
{
return View::make('home');
});
//Applying filters
Route::group(array('before'=> 'auth|dash'), function(){
Route::post('/dashboard', 'DashboardController@postIndex');
Route::post('dashboard/edit/user/', 'UserController@postEdit');
Route::post('dashboard/content', 'DashboardController@postContent');
Route::post('dashboard/users', 'DashboardController@postUsers');
Route::post('dashboard/register', 'DashboardController@postRegister');
});
Route::group(array('before' => 'screening'), function(){
Route::post('/test/screening', 'TestController@postScreening');
//Route::post('test/screening/*', "TestController@" )
});
Route::post('/test/basic', array('before' => 'basic', 'uses' => 'TestController@postBasic'));
Route::post('/test/advanced', array( 'before' => 'advanced', 'uses' => 'TestController@postAdvanced'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment