Last active
December 11, 2017 16:55
-
-
Save dvanderbeek/7d276e9b53bf33c4e55aec5701aa3c9d to your computer and use it in GitHub Desktop.
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
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