mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 02:57:57 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			420 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			420 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| class Api::V1::Accounts::Integrations::AppsController < Api::V1::Accounts::BaseController
 | |
|   before_action :check_admin_authorization?
 | |
|   before_action :fetch_apps, only: [:index]
 | |
|   before_action :fetch_app, only: [:show]
 | |
| 
 | |
|   def index; end
 | |
| 
 | |
|   def show; end
 | |
| 
 | |
|   private
 | |
| 
 | |
|   def fetch_apps
 | |
|     @apps = Integrations::App.all.select(&:active?)
 | |
|   end
 | |
| 
 | |
|   def fetch_app
 | |
|     @app = Integrations::App.find(id: params[:id])
 | |
|   end
 | |
| end
 | 
