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ò <[email protected]>
  • Loading branch information
dtrifiro committed Feb 13, 2024
1 parent 4f99a34 commit 92260e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions router/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,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 92260e3

Please sign in to comment.