View Source FlEx.Router (fl_ex v0.1.3)

This module contains the routing implementation where you can define routes, pipelines for every route

Example:

defmodule MyApp.SomeRouter do
  use FlEx.Router

  plug :accepts, ["json"]

  scope "/api/v1" do
    get "/your_page", MyApp.SomeOtherModule, :function_name
  end
end