Codeminer42/cm42-central

View on GitHub
app/controllers/sessions_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class SessionsController < Devise::SessionsController
  def current
    if user_signed_in?
      render json: current_user, status: :ok
    else
      render json: {}, status: :unauthorized
    end
  end
end