2017-10-20 19:01:22 +06:00

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