Skip to content

Instantly share code, notes, and snippets.

@dvanderbeek
Last active December 11, 2017 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvanderbeek/7d276e9b53bf33c4e55aec5701aa3c9d to your computer and use it in GitHub Desktop.
Save dvanderbeek/7d276e9b53bf33c4e55aec5701aa3c9d to your computer and use it in GitHub Desktop.
defmodule FreecomWeb.Router do
use FreecomWeb, :router
pipeline :api do
plug :accepts, ["json"]
end
scope "/", FreecomWeb do
pipe_through :api
forward "/graphiql", Absinthe.Plug.GraphiQL,
schema: FreecomWeb.Schema,
socket: FreecomWeb.UserSocket,
interface: :simple
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment