Codeminer42/Punchclock

View on GitHub
app/controllers/api/v1/allocations_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Api
  module V1
    class AllocationsController < ActionController::API
      before_action :authenticate_user!

      def current
        render json: { currentAllocation: { id: current_user.current_allocation&.id } }
      end
    end
  end
end