mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-06-19 15:52:08 +00:00
change name to info routes
This commit is contained in:
parent
b3e21ed42e
commit
45da4460a3
@ -1825,7 +1825,7 @@ pub async fn run(
|
|||||||
|
|
||||||
base_routes = base_routes.layer(axum::middleware::from_fn(auth))
|
base_routes = base_routes.layer(axum::middleware::from_fn(auth))
|
||||||
}
|
}
|
||||||
let health_routes = Router::new()
|
let info_routes = Router::new()
|
||||||
.route("/", get(health))
|
.route("/", get(health))
|
||||||
.route("/info", get(get_model_info))
|
.route("/info", get(get_model_info))
|
||||||
.route("/health", get(health))
|
.route("/health", get(health))
|
||||||
@ -1846,7 +1846,7 @@ pub async fn run(
|
|||||||
let mut app = Router::new()
|
let mut app = Router::new()
|
||||||
.merge(swagger_ui)
|
.merge(swagger_ui)
|
||||||
.merge(base_routes)
|
.merge(base_routes)
|
||||||
.merge(health_routes)
|
.merge(info_routes)
|
||||||
.merge(aws_sagemaker_route);
|
.merge(aws_sagemaker_route);
|
||||||
|
|
||||||
#[cfg(feature = "google")]
|
#[cfg(feature = "google")]
|
||||||
|
Loading…
Reference in New Issue
Block a user