Get the first Route than has key as prefix to its path

Property definitions

nitcorn $ Routes :: []
	# Get the first `Route` than has `key` as prefix to its path
	fun [](key: String): nullable Route
	do
		for route in routes do
			var path = route.path
			if path == null or key.has_prefix(path) then return route
		end
		return null
	end
lib/nitcorn/server_config.nit:132,2--140,4

nitcorn :: vararg_routes $ Routes :: []
	# Use `Route::match` instead of `==`.
	redef fun [](key) do
		for route in routes do
			if route.match(key) then return route
		end
		return null
	end
lib/nitcorn/vararg_routes.nit:247,2--253,4