aboutsummaryrefslogtreecommitdiff
path: root/src/controllers
diff options
context:
space:
mode:
authorCamil Staps2015-05-25 15:01:18 +0200
committerCamil Staps2015-05-25 15:01:18 +0200
commit38c26190035d8e724b5346f8e70fb5389552a1e1 (patch)
treeaa66e6a4e12825fd4adf150733a4ec5c359639d8 /src/controllers
parentFixed bug in models without auto_increment column (diff)
Expose Location header; redirect after storing UserHEADmasterHEAD
Diffstat (limited to 'src/controllers')
-rw-r--r--src/controllers/UserController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controllers/UserController.php b/src/controllers/UserController.php
index f6f9562..8c91f53 100644
--- a/src/controllers/UserController.php
+++ b/src/controllers/UserController.php
@@ -61,7 +61,7 @@ class UserController extends BaseController {
$this->user->password = Input::get('password');
if ($this->user->save()) {
- return $this->response->created();
+ return $this->response->created(route('user.show', $this->user->email));
} else {
throw new \Dingo\Api\Exception\StoreResourceFailedException;
}