make graphQL playground private and add CDN URL variable

This commit is contained in:
Andrea Toska 2025-05-12 11:26:14 +02:00
commit cc20eac02b
No known key found for this signature in database
GPG key ID: 5B3C83807CCBE9A2
3 changed files with 21 additions and 11 deletions

View file

@ -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(