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
11 lines
150 B
Ruby
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
|