forked from webNeat/lumen-generators
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace $app wit $router to prevent PHP error in lumen
refs webNeat#47
- Loading branch information
1 parent
73e470e
commit 4abbefa
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |