aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2015-06-28 00:22:19 +0200
committerCamil Staps2015-06-28 00:22:19 +0200
commit935fd06e34f3e60a02f935456ba01f0f3047bbc9 (patch)
treeef55f62dfc2db945c85eff043cf53e38a77eb257
parentLumen (diff)
Rolling back tryoutslumen
-rw-r--r--src/controllers/UserController.php2
-rw-r--r--src/routes.php7
2 files changed, 2 insertions, 7 deletions
diff --git a/src/controllers/UserController.php b/src/controllers/UserController.php
index 2daadb8..ee6b899 100644
--- a/src/controllers/UserController.php
+++ b/src/controllers/UserController.php
@@ -62,7 +62,7 @@ class UserController extends BaseController {
$this->user->password = Input::get('password');
if ($this->user->save()) {
- return $this->response->created(route('user/show', $this->user->email));
+ return $this->response->created(route('user.show', $this->user->email));
} else {
throw new \Dingo\Api\Exception\StoreResourceFailedException;
}
diff --git a/src/routes.php b/src/routes.php
index 89091fe..8ff2436 100644
--- a/src/routes.php
+++ b/src/routes.php
@@ -42,12 +42,7 @@ $app->group(['https'], function() use ($api) {
['only' => ['index','show']]);
$api->resource('user', 'CamilStaps\BotleaguesApi\Controllers\UserController',
- ['only' => ['index','show','store'],
- 'names' => [
- 'index' => 'user.index',
- 'show' => 'user.show',
- 'store' => 'user.store'
- ]]);
+ ['only' => ['index','show','store']]);
$api->resource('user.password_reminder', 'CamilStaps\BotleaguesApi\Controllers\PasswordReminderController',
['only' => ['store']]);