diff --git a/lib/wabanex_web/router.ex b/lib/wabanex_web/router.ex index 4608f2b..8423cac 100644 --- a/lib/wabanex_web/router.ex +++ b/lib/wabanex_web/router.ex @@ -11,6 +11,13 @@ defmodule WabanexWeb.Router do get "/", IMCController, :index end + scope "/api" do + pipe_through :api + + forward "/graphql", Absinthe.Plug, schema: WabanexWeb.Schema + forward "/graphiql", Absinthe.Plug.GraphiQL, schema: WabanexWeb.Schema + end + # Enables LiveDashboard only for development # # If you want to use the LiveDashboard in production, you should put