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

Function routes

examples/react_admin/backend/src/controllers/graphql.rs:30–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30pub fn routes() -> Routes {
31 // Define route
32 Routes::new()
33 // We put all GraphQL route behind `graphql` prefix
34 .prefix("graphql")
35 // GraphQL playground page is a GET request
36 .add("/", get(graphql_playground))
37 // GraphQL handler is a POST request
38 .add("/", post(graphql_handler))
39}

Callers

nothing calls this directly

Calls 2

addMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected