Does self match the req?

Property definitions

popcorn $ AppRoute :: match
	# Does self match the `req`?
	fun match(uri: String): Bool do
		uri = uri.simplify_path
		var path = resolve_path(uri)
		if uri.is_empty and path == "/" then return true
		return uri == path
	end
lib/popcorn/pop_routes.nit:49,2--55,4

popcorn $ AppGlobRoute :: match
	redef fun match(uri) do
		var path = resolve_path(uri)
		return uri.has_prefix(path.substring(0, path.length - 1))
	end
lib/popcorn/pop_routes.nit:225,2--228,4