-
-
Save maxloncar/bb3ee4828470dea771a09640e17d8af9 to your computer and use it in GitHub Desktop.
Routes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.routes.draw do | |
if Rails.env.development? | |
mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "graphql#execute" | |
end | |
post "/graphql", to: "graphql#execute" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment