[−][src]Function juniper_warp::graphiql_filter
pub fn graphiql_filter(
graphql_endpoint_url: &'static str
) -> BoxedFilter<(Response<Vec<u8>>,)>
Create a filter that replies with an HTML page containing GraphiQL. This does not handle routing, so you can mount it on any endpoint.
For example:
let graphiql_route = warp::path("graphiql").and(graphiql_filter("/graphql"));