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

Function vitejs_up_handler

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

Source from the content-addressed store, hash-verified

107}
108
109async fn vitejs_up_handler(State(state): State<Arc<AppState>>) -> impl IntoResponse {
110 let sender = state.tx.clone();
111 sender.send(DevServerEvent::ViteJSStatus(true)).ok();
112
113 StatusCode::OK.into_response()
114}
115
116async fn vitejs_down_handler(State(state): State<Arc<AppState>>) -> impl IntoResponse {
117 let sender = state.tx.clone();

Callers

nothing calls this directly

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected