mentors

mentors Git Source Tree


Root/app/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.
|
*/

/**
 * User Session Controller routes
 */
Route::get('/', function(){return View::make('home') ;});
Route::get('login', array('as' => 'login', 'uses' => 'SessionController@showLogin'));
Route::post('login', array('uses' => 'SessionController@doLogin'));
Route::post('logout', array('uses' => 'SessionController@doLogout'));

/**
 * New User Creation Controller routes
 */
Route::get('users/create', array('as' => 'create', 'uses' => 'UserController@create'));
Route::post('users/store', array('uses' => 'UserController@store'));
Route::put('users/{id}/update', array('before' => 'auth', 'as' => 'update', 'uses' => 'UserController@update'));
Route::get('users/{id}/edit', array('before' => 'auth','uses' => 'UserController@edit'));
Route::delete('users/{id}/delete', array('before' => 'auth','uses' => 'UserController@destroy'));
Route::get('users/group', array('uses' => 'UserController@chooseGroup'));
Route::get('users/{id}', array('uses' => 'UserController@viewProfile'));
Route::post('users/{id}', array('uses' => 'UserController@updateProfile'));

Route::get('choose', function(){ 

	return View::make('mentors.group');

});


/**
 * User Password Reminder Controller routes
 */
Route::get('password/remind', array('uses' => 'RemindersController@getRemind'));
Route::post('password/remind', array('uses' => 'RemindersController@postRemind'));
Route::get('password/reset/{token}', array('uses' => 'RemindersController@getReset'));
Route::post('password/reset/{token}', array('uses' => 'RemindersController@postReset'));

// App::missing(function($exception)
// {
//     return View::make('home');
// });



Archive Download this file

Branches

Number of commits:
Page rendered in 0.38915s using 11 queries.