2015-09-24 01:25:55 +01:00

9 lines
310 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');