fix(router): fix api-inference deployment

This commit is contained in:
OlivierDehaene 2023-01-23 17:41:42 +01:00
parent ab2ad91da3
commit 087b4c2721

View File

@ -195,8 +195,8 @@ pub async fn run(
// Create router
let app = Router::new()
.route("/", post(generate))
.route("/generate", post(generate))
.layer(Extension(shared_state.clone()))
.route("/", get(health))
.route("/health", get(health))
.layer(Extension(shared_state.clone()));