From 38c26190035d8e724b5346f8e70fb5389552a1e1 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 25 May 2015 15:01:18 +0200 Subject: Expose Location header; redirect after storing User --- src/controllers/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/controllers/UserController.php') 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; } -- cgit v1.2.3