53
votes

In the Phoenix router is there a route that could act as a wildcard?

1

1 Answers

108
votes

Ah, the famous pokemon route:

get "/*path"

You will find the paths inside conn.params["path"] or as conn.path_info.