mschae / trailing_format_plug

An elixir plug to support legacy APIs that use a rails-like trailing format: http://api.dev/resources.json
25 stars 15 forks source link

Declaring routes to activate trailingformatplug #11

Closed ecoslado closed 7 years ago

ecoslado commented 7 years ago

This worked fine for me. I'm currently using it. What about it?

ecoslado commented 7 years ago

Related with https://github.com/mschae/trailing_format_plug/issues/10

mschae commented 7 years ago

Sorry but turning the trailing_format_plug into a router just so we can activate it for certain routes sure looks like overkill.

You could use different pipelines if you really want to selectively active it.