Shopifex v0.3.3 ShopifexWeb.CacheBodyReader View Source

Include body_reader: {ShopifexWeb.CacheBodyReader, :read_body, []} in your endpoint.ex file in Plug.Parser options

Example:

...
plug Plug.Parsers,
  parsers: [:urlencoded, :multipart, :json],
  pass: ["*/*"],
  body_reader: {ShopifexWeb.CacheBodyReader, :read_body, []},
  json_decoder: Phoenix.json_library()

Link to this section Summary

Link to this section Functions