ash-project / ash_json_api

The JSON:API extension for the Ash Framework
https://hexdocs.pm/ash_json_api
MIT License
63 stars 42 forks source link

Adjust routing so that it shows up in `mix phx.routes` #3

Closed zachdaniel closed 2 years ago

zachdaniel commented 4 years ago

Is your feature request related to a problem? Please describe. Currently mix phx.routes doesn't show the routes that we create.

Describe the solution you'd like Spoke to Chris Mccord about this, and he says that we can probably write a feature for Plug.Router to hook this up.

Describe alternatives you've considered

If that's not reasonable, we can move away from a Plug.Router, which may be acceptable also. So instead of forwarding to a Plug.Router we would just call a macro in the router that would define all of their routes in-line.

zachdaniel commented 2 years ago

It actually isn't very reasonable to change this at the moment.