Advertisement
onzulin

Untitled

Nov 3rd, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.93 KB | None | 0 0
  1. #routes.php file
  2. <?php
  3.  
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Application Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here is where you can register all of the routes for an application.
  10. | It's a breeze. Simply tell Laravel the URIs it should respond to
  11. | and give it the Closure to execute when that URI is requested.
  12. |
  13. */
  14.  
  15. Route::get('/', function()
  16. {
  17.     return View::make('hello');
  18. });
  19. Route::resource('usuarios', 'UsuariosController');
  20. //ruta para el servicio RESTFul
  21. Route::group(array('prefix' => '/api/rest'), function()
  22. {
  23.     //Route::resource('photos', 'PhotoController');
  24.     Route::resource('users', 'UsuariosRestController');
  25.     //Route::resource('categories', 'CategoryController');
  26.  
  27. });
  28. Route::group(array('prefix' => '/api/rest/auth'), function()
  29. {
  30.     Route::post('/login', array('user' => 'AuthController@loginUser' ));
  31. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement