KyivKrishnaAcademy/ved_akadem_students

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Api
  module V1
    class BaseController < ApplicationController
      include DeviseTokenAuth::Concerns::SetUserByToken

      protect_from_forgery with: :null_session

      respond_to :json

      skip_before_action :set_locale

      alias current_person current_api_v1_person
    end
  end
end