diaspora/app/controllers/api/v0/users_controller.rb
theworldbright 88d02ea35b Add client registration
Client must now be registered prior to imitating a
call to the token endpoint with the password flow.

Squashed commits:

[fdcef62] Rename authorization endpoint to protected resource endpoint
2016-01-04 16:49:48 +09:00

11 lines
150 B
Ruby

class Api::V0::UsersController < Api::V0::BaseController
def show
render json: user
end
private
def user
current_token.user
end
end