I wanted to know if there’s something like Rails.application.routes.recognize_path(uri)
available with Phoenix. Or what’s the best way to have an alternative.
1 Like
What is the problem that you are trying to solve? What would your ideal function return as a result?
1 Like
I’m trying to get which route would match an URI that I don’t know of, such an a JSON-LD IRI like http://example.org/graphs/73
if I have the get "/graphs/:id" MyModule :myfunction
.
My function would take a string and return the MyModule
module, the myfunction
function name of the route which matches to this IRI, and its params (here 73
).
1 Like