我正在尝试匹配南希模块中的所有路由。Sinatra使用splat参数,例如
get '/download/*.*' do
# matches /download/path/to/file.xml
params[:splat] # => ["path/to/file", "xml"]
end这在Nancy中存在吗?
发布于 2013-05-16 01:00:52
这在文档中有介绍--看看贪婪的节点:
https://stackoverflow.com/questions/16569792
复制相似问题