lumen-generators/templates/routes.wnt

9 lines
311 B
Plaintext
Raw Normal View History

/**
* 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');