mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2024-12-27 06:25:28 +03:00
9 lines
311 B
Plaintext
9 lines
311 B
Plaintext
/**
|
|
* Routes for resource {{resource}}
|
|
*/
|
|
$app->get('{{resource}}', '{{controller}}@all');
|
|
$app->get('{{resource}}/{id}', '{{controller}}@get');
|
|
$app->post('{{resource}}', '{{controller}}@add');
|
|
$app->put('{{resource}}/{id}', '{{controller}}@put');
|
|
$app->delete('{{resource}}/{id}', '{{controller}}@remove');
|