Skip to content

Commit

Permalink
reporting available workers in /sessions api
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Jul 19, 2024
1 parent 19ce307 commit 733b4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::api::SharedState;

#[get("/sessions")]
pub async fn list(state: web::Data<SharedState>) -> HttpResponse {
HttpResponse::Ok().json(state.read().await.active_sessions())
HttpResponse::Ok().json(&*state.read().await)
}

#[get("/session/{session_id}")]
Expand Down

0 comments on commit 733b4e7

Please sign in to comment.