aboutsummaryrefslogtreecommitdiff
path: root/src/controllers/UserController.php
diff options
context:
space:
mode:
authorCamil Staps2015-06-28 00:16:54 +0200
committerCamil Staps2015-06-28 00:16:54 +0200
commit1a3c6167f6a68964a0bd94c064a88794c952efb6 (patch)
tree984508e789b96e2f8906c00a9def229435b45403 /src/controllers/UserController.php
parentExpose Location header; redirect after storing User (diff)
Lumen
Diffstat (limited to 'src/controllers/UserController.php')
-rw-r--r--src/controllers/UserController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controllers/UserController.php b/src/controllers/UserController.php
index 8c91f53..2daadb8 100644
--- a/src/controllers/UserController.php
+++ b/src/controllers/UserController.php
@@ -23,6 +23,7 @@ use CamilStaps\BotleaguesApi\Database\User;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Input;
+use Illuminate\Support\Facades\URL;
use Illuminate\Support\Facades\Validator;
class UserController extends BaseController {
@@ -61,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;
}