mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2025-01-13 13:57:55 +03:00
9 lines
326 B
Plaintext
9 lines
326 B
Plaintext
/**
|
|
* Routes for resource {{resource}}
|
|
*/
|
|
$router->get('{{resource}}', '{{controller}}@all');
|
|
$router->get('{{resource}}/{id}', '{{controller}}@get');
|
|
$router->post('{{resource}}', '{{controller}}@add');
|
|
$router->put('{{resource}}/{id}', '{{controller}}@put');
|
|
$router->delete('{{resource}}/{id}', '{{controller}}@remove');
|