trailing_format_plug
trailing_format_plug copied to clipboard
An elixir plug to support legacy APIs that use a rails-like trailing format: http://api.dev/resources.json
We are currently using trailing_format_plug for an API we are implementing with Phoenix. We use it to declare urls like `example.com/:one_param`, receive requests with `example.com/one_value.js` and use "one_value" in the...
My routes are like this ``` Elixir scope "/", PostPhoenix do pipe_through :api scope "v1" do resources "posts", PostController, only: [:index, :show] post "posts/search", PostController, :search end end ``` member...