add config routes
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user