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

Function get_one

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

Source from the content-addressed store, hash-verified

55}
56
57pub async fn get_one(Path(id): Path<i32>, State(ctx): State<AppContext>) -> Result<Response> {
58 format::json(load_item(&ctx, id).await?)
59}
60
61pub fn routes() -> Routes {
62 Routes::new()

Callers

nothing calls this directly

Calls 2

jsonFunction · 0.85
load_itemFunction · 0.70

Tested by

no test coverage detected