public static bool IsUrlSchemeFolderResource(this UrlScheme urlScheme)
        {
            if (urlScheme is null)
            {
                return(false);
            }

            return(urlScheme.IsFolderResource);
        }
        public static string GetResourceFolderFile(this UrlScheme urlScheme, string routePath)
        {
            if (urlScheme is null ||
                string.IsNullOrWhiteSpace(urlScheme.Folder) ||
                string.IsNullOrWhiteSpace(routePath))
            {
                return(string.Empty);
            }

            var folder = urlScheme.Folder.TrimEnd(FORWARDSLASH).TrimEnd(BACKWARDSLASH).Replace(FORWARDSLASH, Path.DirectorySeparatorChar).Replace(BACKWARDSLASH, Path.DirectorySeparatorChar);

            routePath = routePath.TrimStart(FORWARDSLASH).TrimStart(BACKWARDSLASH).Replace(FORWARDSLASH, Path.DirectorySeparatorChar).Replace(BACKWARDSLASH, Path.DirectorySeparatorChar);

            return($"{folder}{Path.DirectorySeparatorChar}{routePath}");
        }