正常状态: /api/v1/xxx 能工作 BUG: /apiv1/xxx 居然也能工作
mount Api::Dispatch => '/api/'
grape 请求打印出的路由信息
Started GET "/apiv1/screens" for ::1 at 2015-09-10 18:01:38 +0800
{
"route_info" => #<Grape::Route:0x007fd5e241c9a8 @options={:description=>"Retun screens", :prefix=>nil, :version=>"v1", :namespace=>"/", :method=>"GET", :path=>"/:version/screens(.:format)", :params=>{}, :compiled=>/\A\/(?<version>v1)\/screens(?:\.(?<format>[^\/.?]+))?\Z/}>
}
有没有办法,让http://localhost:3001/apiv1/screens.json访问失败?