Skip to content

Commit

Permalink
replace $app wit $router to prevent PHP error in lumen
Browse files Browse the repository at this point in the history
  • Loading branch information
davidporos92 committed Oct 20, 2017
1 parent 73e470e commit 4abbefa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/routes.wnt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* 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');
$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');

0 comments on commit 4abbefa

Please sign in to comment.