popcorn :: AppRoute :: match
req
# 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
redef fun match(uri) do var path = resolve_path(uri) return uri.has_prefix(path.substring(0, path.length - 1)) end