Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #routes.php file
- <?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::get('/', function()
- {
- return View::make('hello');
- });
- Route::resource('usuarios', 'UsuariosController');
- //ruta para el servicio RESTFul
- Route::group(array('prefix' => '/api/rest'), function()
- {
- //Route::resource('photos', 'PhotoController');
- Route::resource('users', 'UsuariosRestController');
- //Route::resource('categories', 'CategoryController');
- });
- Route::group(array('prefix' => '/api/rest/auth'), function()
- {
- Route::post('/login', array('user' => 'AuthController@loginUser' ));
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement