defmodule Elixre.Router do
  use Phoenix.Router

  pipeline :browser do
    plug :accepts, ["html"]
    plug :fetch_session
    plug :fetch_flash
    plug :protect_from_forgery
  end

  pipeline :api do
    plug :accepts, ["json"]
  end

  scope "/", Elixre do
    pipe_through :browser
    get "/", PageController, :index
  end

  scope "/", Elixre do
    pipe_through :api
    post "/test", TestController, :index
  end
end

defmodule Elixre.Router do
  use Phoenix.Router

  pipeline :browser do
    plug :accepts, ["html"]
  end

  pipeline :api do
    plug :accepts, ["json"]
  end

  scope "/", Elixre do
    pipe_through :browser
    get "/", PageController, :index
  end

  scope "/", Elixre do
    pipe_through :api
    post "/test", TestController, :index
  end
end

Remove unneeded plugs from browser pipeline
Remove unneeded plugs from browser pipeline

linearregression/elixre,linearregression/elixre,lpil/elixre