summaryrefslogtreecommitdiff
path: root/app/controllers/api/v2/users_controller.rb
blob: 3d9155b510190a10c5b8641f677bbca4fea59e45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

class Api::V2::UsersController < Api::V2::ApiController
  skip_authorization_check

  def current
    respond_with current_user
  end

  def show
    @user = User.find_by(id: params[:id])
    respond_with @user
  end

  def fetch_many
    @users = User.where(id: params[:ids])
    respond_with @users
  end
end