$router->get('/', function () use ($router) {
return $router->app->version();
});
$router->group(['prefix' => 'api'], function () use ($router) {
$router->group(['prefix' => 'orcamentos'], function () use ($router) {
$router->post('', 'OrcamentosController@store');
$router->get('', 'OrcamentosController@index');
$router->get('{id}', 'OrcamentosController@show');
$router->put('{id}', 'OrcamentosController@update');
$router->delete('{id}', 'OrcamentosController@destroy');
});
$router->group(['prefix' => 'clientes'], function () use ($router) {
$router->post('', 'ClientesController@store');
$router->get('', 'ClientesController@index');
$router->get('{id}', 'ClientesController@show');
$router->put('{id}', 'ClientesController@update');
$router->delete('{id}', 'ClientesController@destroy');
});
$router->group(['prefix' => 'galerias'], function () use ($router) {
$router->post('', 'GaleriasController@store');
$router->get('', 'GaleriasController@index');
$router->get('{id}', 'GaleriasController@show');
$router->put('{id}', 'GaleriasController@update');
$router->delete('{id}', 'GaleriasController@destroy');
});
$router->group(['prefix' => 'galeriaimagens'], function () use ($router) {
$router->post('', 'GaleriasImagensController@store');
$router->get('', 'GaleriasImagensController@index');
$router->get('{id}', 'GaleriasImagensController@show');
$router->put('{id}', 'GaleriasImagensController@update');
$router->delete('{id}', 'GaleriasImagensController@destroy');
});
});