2020-06-12 17:42:47 +00:00
|
|
|
class Api::V1::Accounts::Integrations::AppsController < Api::V1::Accounts::BaseController
|
2021-06-11 06:14:31 +00:00
|
|
|
before_action :check_admin_authorization?
|
2020-06-12 17:42:47 +00:00
|
|
|
before_action :fetch_apps, only: [:index]
|
|
|
|
before_action :fetch_app, only: [:show]
|
|
|
|
|
|
|
|
def index; end
|
|
|
|
|
|
|
|
def show; end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def fetch_apps
|
2020-06-22 07:49:26 +00:00
|
|
|
@apps = Integrations::App.all.select(&:active?)
|
2020-06-12 17:42:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def fetch_app
|
|
|
|
@app = Integrations::App.find(id: params[:id])
|
|
|
|
end
|
|
|
|
end
|