本文介绍了在Elixir的Phoenix中全包/通配符路线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Phoenix路由器中是否存在可以用作通配符的路由?
In the Phoenix router is there a route that could act as a wildcard?
推荐答案
啊,著名的神奇宝贝路线:
Ah, the famous pokemon route:
get "/*path"
您会在conn.params["path"]
内部或conn.path_info
中找到路径.
You will find the paths inside conn.params["path"]
or as conn.path_info
.
这篇关于在Elixir的Phoenix中全包/通配符路线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!