make graphQL playground private and add CDN URL variable
This commit is contained in:
parent
0dd4bfa7de
commit
cc20eac02b
3 changed files with 21 additions and 11 deletions
|
|
@ -198,16 +198,16 @@ impl Mutation {
|
|||
}
|
||||
*/
|
||||
|
||||
#[rocket::get("/graphiql")]
|
||||
pub fn graphiql() -> RawHtml<String> {
|
||||
juniper_rocket::graphiql_source("/graphql", None)
|
||||
}
|
||||
|
||||
|
||||
#[rocket::get("/playground")]
|
||||
pub fn playground() -> RawHtml<String> {
|
||||
juniper_rocket::playground_source("/graphql", None)
|
||||
}
|
||||
// #[rocket::get("/graphiql")]
|
||||
// pub fn graphiql() -> RawHtml<String> {
|
||||
// juniper_rocket::graphiql_source("/graphql", None)
|
||||
// }
|
||||
//
|
||||
//
|
||||
// #[rocket::get("/playground")]
|
||||
// pub fn playground() -> RawHtml<String> {
|
||||
// juniper_rocket::playground_source("/graphql", None)
|
||||
// }
|
||||
|
||||
#[rocket::get("/graphql?<request..>")]
|
||||
pub async fn get_graphql(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue