foodsoft/app/controllers/api/v1/user/users_controller.rb
2021-03-02 09:12:19 +01:00

7 lines
186 B
Ruby

class Api::V1::User::UsersController < Api::V1::BaseController
before_action -> { doorkeeper_authorize! 'user:read', 'user:write' }
def show
render json: current_user
end
end