Unscope one route

Interestingly enough, you can have two admin scopes:

scope "/admin", MyApp.Admin, as: :admin do
  pipe_through :browser
  pipe_through :admin_browser

  resources "/rooms", RoomsController, only: [:show, :index, :update]
  # ... other resources defined
end

scope "/admin" do
  pipe_through :browser
  pipe_through :admin_browser
  forward "/graphiql", Absinthe.Plug.GraphiQL, schema: MyApp.Schema
end

2 Likes