diff options
author | Azul <azul@leap.se> | 2013-08-21 20:35:50 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-08-21 20:35:50 +0200 |
commit | e325de14dd0d9878a3392051dc98a14d9811d2c9 (patch) | |
tree | 02553327bc0ba014453ec19f8ad68206189defad | |
parent | 115d96398246dcda23a51728dfafe1ea3c8ede88 (diff) |
return 204 NO CONTENT on API logout
That's the only meaningful response.
-rw-r--r-- | users/app/controllers/v1/sessions_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/users/app/controllers/v1/sessions_controller.rb b/users/app/controllers/v1/sessions_controller.rb index e3459d6..c99d1f3 100644 --- a/users/app/controllers/v1/sessions_controller.rb +++ b/users/app/controllers/v1/sessions_controller.rb @@ -29,7 +29,7 @@ module V1 def destroy logout - redirect_to root_path + head :no_content end protected |