Skip to content

[SPIKE] Create Content Negotiation Plug that *Any* Phoenix App can use! #1

@nelsonic

Description

@nelsonic

We have show that content negotiation is fairly straightforward in a Phoenix App in our tutorial: https://github.com/dwyl/phoenix-content-negotiation-tutorial
but our conclusion is that it's quite cumbersome.

We need a simplified way of doing content negotiation in our App(s)
whereby we only add one line to the router.ex and one line to each controller.

I think it's possible, but I don't know for sure. 💭
I would prefer to avoid including Phoenix as a Dependency ... because of maintenance and RAM.
So this issue is a "SPIKE" to:

  • explore how to do content negotiation in a reusable plug.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions