Files
api/app/controllers/api/v1/profile_controller.rb
T
2026-05-18 13:17:28 -04:00

17 lines
341 B
Ruby

module Api
module V1
class ProfileController < ApplicationController
include AuthorizeRequest
# get /profile
# this is for getting current user who logged in
def show
render json: {
id: @current_user.id,
email: @current_user.email
}, status: :ok
end
end
end
end