@ -35,7 +35,11 @@ module Api
unloadable
AuthorizationData = Struct.new(:authorized, :authorized_user_id)
def index
@authorization = AuthorizationData.new(true, User.current.id)
respond_to do |format|
format.api
end
@ -25,7 +25,5 @@
#
# See doc/COPYRIGHT.rdoc for more details.
#++
object :none
node :authorization do
{authorized: true}
object @authorization => :authorization
attributes :authorized, :authorized_user_id