Skip to content

Instantly share code, notes, and snippets.

@makamo
Created June 11, 2015 14:03
Show Gist options
  • Save makamo/251caec5592b518bbfa7 to your computer and use it in GitHub Desktop.
Save makamo/251caec5592b518bbfa7 to your computer and use it in GitHub Desktop.
Router::scope('/', function (RouteBuilder $routes) {
$routes->extensions(['json', 'pdf']);
$routes->resources('Clients', function (RouteBuilder $routes) {
$routes->resources('Localisations');
});
$routes->resources('Contrats');
$routes->resources('Holes');
$routes->resources('ContratsProduits');
$routes->resources('ContratsEmployees');
$routes->resources('ContratsEquipements', [
'map' => [
'find_by_contrat' => [
'action' => 'findByContrat',
'method' => 'POST',
'path' => '/find_by_contrat'
],
]
]);
$routes->resources('Paies', function (RouteBuilder $routes) {
$routes->resources('PaieHeures');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment