add config routes

This commit is contained in:
aakashb95
2025-12-17 15:19:24 +05:30
parent 65e3f8231f
commit a9a113bace
2 changed files with 12 additions and 0 deletions
@@ -0,0 +1,11 @@
class Api::V1::Accounts::Captain::ConfigController < Api::V1::Accounts::BaseController
before_action :current_account
def show
render json: {
providers: Llm::ConfigService.providers,
models: Llm::ConfigService.models,
features: Llm::ConfigService.all_features_config
}
end
end
+1
View File
@@ -52,6 +52,7 @@ Rails.application.routes.draw do
post :bulk_create, on: :collection
end
namespace :captain do
resource :config, only: [:show], controller: 'config'
resources :assistants do
member do
post :playground