Move GraphiQL to root

This commit is contained in:
Magnus Hallin 2016-09-18 15:55:30 +02:00
parent f4a3240cc8
commit c9f9233681

View file

@ -22,7 +22,7 @@ fn main() {
let graphql_endpoint = GraphQLHandler::new(context_factory, Query { }, Mutation { });
let graphiql_endpoint = GraphiQLHandler::new("/graphql");
mount.mount("/graphiql", graphiql_endpoint);
mount.mount("/", graphiql_endpoint);
mount.mount("/graphql", graphql_endpoint);
let (logger_before, logger_after) = Logger::new(None);