Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Botloader/botloader
/ get_news
Function
get_news
components/webapi/src/routes/general.rs:24–27 ·
view source on GitHub ↗
(State(state): State<AppState>)
Source
from the content-addressed store, hash-verified
22
}
23
24
pub async fn get_news(State(state): State<AppState>) -> impl IntoResponse {
25
let latest = state.news_handle.get_items();
26
Json(latest)
27
}
Callers
nothing calls this directly
Calls
1
get_items
Method · 0.80
Tested by
no test coverage detected