defmodule ParticipateApi.Router do
  use ParticipateApi.Web, :router

  pipeline :api do
    plug :accepts, ["json-api"]
    plug JaSerializer.ContentTypeNegotiation
    plug JaSerializer.Deserializer
  end

  scope "/api", ParticipateApi do
    pipe_through :api

    get "/:provider", AuthController, :request
    get "/:provider/callback", AuthController, :callback
    post "/:provider/callback", AuthController, :callback
    delete "/logout", AuthController, :delete
  end
end

defmodule ParticipateApi.Router do
  use ParticipateApi.Web, :router

  pipeline :api do
    plug :accepts, ["json-api"]
    plug JaSerializer.ContentTypeNegotiation
    plug JaSerializer.Deserializer
  end

  scope "/", ParticipateApi do
    pipe_through :api
  end

  scope "/auth", ParticipateApi do
    pipe_through :browser

    get "/:provider", AuthController, :request
    get "/:provider/callback", AuthController, :callback
  end
end

Move auth into separate routing scope, not going to use json-api for it
Move auth into separate routing scope, not going to use json-api for it

participateapp/api,oliverbarnes/participate-api,oliverbarnes/participate-new-api