Skip to content

Instantly share code, notes, and snippets.

@flavioribeirojr
Last active August 14, 2017 15:47
Show Gist options
  • Save flavioribeirojr/1f4fbd698d235e317964ca74cef94ddb to your computer and use it in GitHub Desktop.
Save flavioribeirojr/1f4fbd698d235e317964ca74cef94ddb to your computer and use it in GitHub Desktop.
<?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