fix(router): fix api-inference deployment (#31)
This commit is contained in:
parent
ab2ad91da3
commit
5c01e2544c
|
@ -195,8 +195,8 @@ pub async fn run(
|
||||||
|
|
||||||
// Create router
|
// Create router
|
||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
|
.route("/", post(generate))
|
||||||
.route("/generate", post(generate))
|
.route("/generate", post(generate))
|
||||||
.layer(Extension(shared_state.clone()))
|
|
||||||
.route("/", get(health))
|
.route("/", get(health))
|
||||||
.route("/health", get(health))
|
.route("/health", get(health))
|
||||||
.layer(Extension(shared_state.clone()));
|
.layer(Extension(shared_state.clone()));
|
||||||
|
|
Loading…
Reference in New Issue