MCPcopy Create free account
hub / github.com/Wulf/create-rust-app / backend_up_handler

Function backend_up_handler

crates/create-rust-app/src/dev/dev_server.rs:101–107  ·  view source on GitHub ↗
(State(state): State<Arc<AppState>>)

Source from the content-addressed store, hash-verified

99}
100
101async fn backend_up_handler(State(state): State<Arc<AppState>>) -> impl IntoResponse {
102 let sender = state.tx.clone();
103 sender.send(DevServerEvent::BackendRestarting(false)).ok();
104 sender.send(DevServerEvent::BackendStatus(true)).ok();
105
106 StatusCode::OK.into_response()
107}
108
109async fn vitejs_up_handler(State(state): State<Arc<AppState>>) -> impl IntoResponse {
110 let sender = state.tx.clone();

Callers

nothing calls this directly

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected