summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-08-21 20:35:50 +0200
committerAzul <azul@leap.se>2013-08-21 20:35:50 +0200
commite325de14dd0d9878a3392051dc98a14d9811d2c9 (patch)
tree02553327bc0ba014453ec19f8ad68206189defad /users
parent115d96398246dcda23a51728dfafe1ea3c8ede88 (diff)
return 204 NO CONTENT on API logout
That's the only meaningful response.
Diffstat (limited to 'users')
-rw-r--r--users/app/controllers/v1/sessions_controller.rb2
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