Skip to content

Commit

Permalink
add graphiql warning comment (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
matkev authored Dec 4, 2023
1 parent b908b25 commit 772f1d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/elixir_boilerplate_graphql/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ defmodule ElixirBoilerplateGraphQL.Router do
plug(:match)
plug(:dispatch)

# It is intentional that we do not *serve* GraphiQL as part of the API.
# Developers should use standalone GraphQL clients that connect to the API instead.
forward("/graphql", to: GraphQL)

match(_, do: conn)
Expand Down

0 comments on commit 772f1d9

Please sign in to comment.