Skip to content

Commit

Permalink
re-enable http generate endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Trifirò <dtrifiro@redhat.com>
  • Loading branch information
dtrifiro committed Mar 13, 2024
1 parent f7d3c5f commit 8b10d79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions router/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use axum::{
http::{HeaderMap, StatusCode},
response::IntoResponse,
routing::get,
routing::post,
Json, Router,
};
use metrics_exporter_prometheus::{Matcher, PrometheusBuilder, PrometheusHandle};
Expand Down Expand Up @@ -436,9 +437,8 @@ async fn do_run<B: BatchType>(

// Create router
let app = Router::new()
// Disabling HTTP generate endpoint for now
//.route("/generate", post(generate))
//.layer(Extension(shared_state.clone()))
.route("/generate", post(generate))
.layer(Extension(shared_state.clone()))
.route("/health", get(health))
.layer(Extension(health_ext))
.route("/metrics", get(metrics))
Expand Down

0 comments on commit 8b10d79

Please sign in to comment.