Skip to content

Instantly share code, notes, and snippets.

@BlinZeka
Created December 3, 2015 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BlinZeka/4874a1e11eae158990a8 to your computer and use it in GitHub Desktop.
Save BlinZeka/4874a1e11eae158990a8 to your computer and use it in GitHub Desktop.
public function map(Registrar $router)
{
$router->group(['middleware' => 'auth'], function ($router) {
$router->get('api/clients', 'ClientController@index');
$router->get('api/clients/{id}', 'ClientController@show');
$router->post('api/clients', 'ClientController@store');
$router->put('api/clients/{id}', 'ClientController@update');
$router->delete('api/clients/{id}', 'ClientController@delete');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment