initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Api
|
||||
class ApiBaseController < ActionController::API
|
||||
include ActiveStorage::SetCurrent
|
||||
|
||||
before_action :authenticate_user!
|
||||
|
||||
private
|
||||
|
||||
def current_account
|
||||
current_user&.account
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user