summaryrefslogtreecommitdiffstats
path: root/src/api.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.rs')
-rw-r--r--src/api.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/api.rs b/src/api.rs
index 57dc4b7..bab2043 100644
--- a/src/api.rs
+++ b/src/api.rs
@@ -1,5 +1,3 @@
-use axum::{extract::State, routing::get, Json};
-
use crate::AppState;
pub mod services;
@@ -9,9 +7,4 @@ pub fn router() -> axum::Router<AppState> {
axum::Router::new()
.nest("/sse", sse::router())
.nest("/status", services::router())
- .route("/list", get(names))
-}
-
-pub async fn names(State(state): State<AppState>) -> Json<Vec<String>> {
- Json(state.names())
}