From 9ee7fdbac57982f5b540a559497ea30e78e85f28 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Wed, 19 Apr 2023 01:18:07 -0700 Subject: [PATCH] move endpoint --- crates/service/web/storyteller_web/src/routes.rs | 2 +- crates/service/web/storyteller_web/src/server_state.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/service/web/storyteller_web/src/routes.rs b/crates/service/web/storyteller_web/src/routes.rs index 606c288f57..6ed5ed1b71 100644 --- a/crates/service/web/storyteller_web/src/routes.rs +++ b/crates/service/web/storyteller_web/src/routes.rs @@ -529,7 +529,7 @@ fn add_web_vc_routes (app: App) -> App .route(web::head().to(|| HttpResponse::Ok())) ) .service( - web::resource("/model/list") + web::resource("/model_list") .route(web::get().to(list_voice_conversion_models_handler)) .route(web::head().to(|| HttpResponse::Ok())) ) diff --git a/crates/service/web/storyteller_web/src/server_state.rs b/crates/service/web/storyteller_web/src/server_state.rs index 3d49c457be..4ea76a50ea 100644 --- a/crates/service/web/storyteller_web/src/server_state.rs +++ b/crates/service/web/storyteller_web/src/server_state.rs @@ -6,6 +6,7 @@ use crate::http_server::endpoints::categories::tts::list_fully_computed_assigned use crate::http_server::endpoints::categories::tts::list_tts_categories::DisplayCategory; use crate::http_server::endpoints::leaderboard::get_leaderboard::LeaderboardInfo; use crate::http_server::endpoints::tts::list_tts_models::TtsModelRecordForResponse; +use crate::http_server::endpoints::voice_conversion::models::list_voice_conversion_models::VoiceConversionModel; use crate::http_server::web_utils::redis_rate_limiter::RedisRateLimiter; use crate::threads::db_health_checker_thread::db_health_check_status::HealthCheckStatus; use crate::util::encrypted_sort_id::SortKeyCrypto; @@ -24,7 +25,6 @@ use sqlx::MySqlPool; use url_config::third_party_url_redirector::ThirdPartyUrlRedirector; use users_component::utils::session_checker::SessionChecker; use users_component::utils::session_cookie_manager::SessionCookieManager; -use crate::http_server::endpoints::voice_conversion::models::list_voice_conversion_models::VoiceConversionModel; /// State that is injected into every endpoint. pub struct ServerState { @@ -187,7 +187,7 @@ pub struct StaticFeatureFlags { /// Disable the live `/tts/list` endpoint for all users and serve a static value instead. pub disable_tts_model_list_endpoint: bool, - /// Disable the live `/v1/voice_conversion/model/list` endpoint for all users and serve a static value instead. + /// Disable the live `/v1/voice_conversion/model_list` endpoint for all users and serve a static value instead. pub disable_voice_conversion_model_list_endpoint: bool, /// Tell the frontend client how fast to refresh their view of the pending inference count.