Casex v0.4.2 Casex.CamelCaseDecoderPlug View Source

Converts all plug params to snake case.

Usage

Add Casex.CamelCaseDecoderPlug to your api pipeline:

# router.ex
pipeline :api do
  plug :accepts, ["json"]
  plug Casex.CamelCaseDecoderPlug
end

Now, all request bodies and params will be converted to snake case.