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

Function routes

examples/loco_example/src/controllers/notes.rs:61–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61pub fn routes() -> Routes {
62 Routes::new()
63 .prefix("notes")
64 .add("/", get(list))
65 .add("/", post(add))
66 .add("/{id}", get(get_one))
67 .add("/{id}", delete(remove))
68 .add("/{id}", post(update))
69}

Callers 1

routesMethod · 0.50

Calls 3

addMethod · 0.80
newFunction · 0.50
deleteFunction · 0.50

Tested by

no test coverage detected