Added some json support

This commit is contained in:
MrYummy
2017-06-21 01:59:02 +02:00
parent 992406a20b
commit 0972181e75
3 changed files with 25 additions and 5 deletions

View File

@@ -30,6 +30,10 @@ class UsersController < ApplicationController
end
def show
respond_to do |format|
format.html
format.json {render json: @user.attributes.slice("id", "uuid", "ign", "name", "about", "donor", "confirmed", "last_seen", "created_at").to_json}
end
end
# SIGNUP