fix: remove unused route
This commit is contained in:
parent
5c58d7d870
commit
bccb7cfeaf
11
src/main.rs
11
src/main.rs
@ -1,8 +1,4 @@
|
||||
use axum::routing::post;
|
||||
use axum::{
|
||||
routing::get,
|
||||
Router,
|
||||
};
|
||||
use axum::{routing::get, Router};
|
||||
|
||||
use rustysearch::search::engine::SearchEngine;
|
||||
|
||||
@ -17,11 +13,10 @@ async fn main() {
|
||||
// build our application with a route
|
||||
let app = Router::new()
|
||||
// `GET /` goes to `root`
|
||||
.route("/", get(rustysearch::handler::hello::say_hello))
|
||||
.route("/search/add", post(rustysearch::handler::search::index_new_document));
|
||||
.route("/", get(rustysearch::handler::hello::say_hello));
|
||||
// .route("/search/add", post(rustysearch::handler::search::index_new_document));
|
||||
|
||||
// run our app with hyper, listening globally on port 3000
|
||||
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
|
||||
axum::serve(listener, app).await.unwrap();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user