Created
June 11, 2015 14:03
-
-
Save makamo/251caec5592b518bbfa7 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
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