server: fix url for graphiql

This commit is contained in:
Bill Thiede 2024-08-26 21:47:05 -07:00
parent 71de3ef8ae
commit 446fcfe37f
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ async fn original(
#[rocket::get("/")]
fn graphiql() -> content::RawHtml<String> {
content::RawHtml(GraphiQLSource::build().endpoint("/graphql").finish())
content::RawHtml(GraphiQLSource::build().endpoint("/api/graphql").finish())
}
#[rocket::get("/graphql?<query..>")]

View File

@ -1,4 +1,4 @@
DEV_HOST=localhost
DEV_PORT=9345
graphql-client introspect-schema http://${DEV_HOST:?}:${DEV_PORT:?}/graphql --output schema.json
graphql-client introspect-schema http://${DEV_HOST:?}:${DEV_PORT:?}/api/graphql --output schema.json
git diff schema.json