Catch-all/wildcard route in Elixir's Phoenix?

前端 未结 1 1421
攒了一身酷
攒了一身酷 2020-12-05 06:32

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

相关标签:
1条回答
  • 2020-12-05 06:46

    Ah, the famous pokemon route:

    get "/*path"
    

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

    0 讨论(0)
提交回复
热议问题