Last active
August 14, 2017 15:47
-
-
Save flavioribeirojr/1f4fbd698d235e317964ca74cef94ddb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Application Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register all of the routes for an application. | |
| It is a breeze. Simply tell Lumen the URIs it should respond to | |
| and give it the Closure to call when that URI is requested. | |
| | |
*/ | |
$app->group(['prefix' => 'carros'], function() use($app) { | |
$app->get('/', 'CarrosController@index'); | |
$app->post('/', 'CarrosController@store'); | |
$app->get('/{id}', 'CarrosController@show'); | |
$app->put('/{id}', 'CarrosController@update'); | |
$app->delete('/{id}', 'CarrosController@delete'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment