MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / get_one

Function get_one

examples/loco_starter/src/controllers/notes.rs:63–65  ·  view source on GitHub ↗
(Path(id): Path<i32>, State(ctx): State<AppContext>)

Source from the content-addressed store, hash-verified

61
62#[debug_handler]
63pub async fn get_one(Path(id): Path<i32>, State(ctx): State<AppContext>) -> Result<Response> {
64 format::json(load_item(&ctx, id).await?)
65}
66
67pub fn routes() -> Routes {
68 Routes::new()

Callers

nothing calls this directly

Calls 2

jsonFunction · 0.85
load_itemFunction · 0.70

Tested by

no test coverage detected