move endpoint

This commit is contained in:
Brandon Thomas committed 2023-04-19 01:18:07 -07:00
1 parent 67e3ecebc1
commit 9ee7fdbac5
2 files changed
+3 -3

No files matched your search

@@ -529,7 +529,7 @@ fn add_web_vc_routes<T, B> (app: App<T, B>) -> App<T, B>
.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()))
)
@@ -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.