private static IApplicationBuilder UsePlaygroundFileServer(
            this IApplicationBuilder applicationBuilder,
            PathString route)
        {
            var fileServerOptions = new FileServerOptions
            {
                RequestPath        = route,
                FileSystem         = CreateFileSystem(),
                EnableDefaultFiles = true,
                StaticFileOptions  =
                {
                    ContentTypeProvider =
                        new FileExtensionContentTypeProvider()
                }
            };

            return(applicationBuilder.UseFileServer(fileServerOptions));
        }
        private static IApplicationBuilder UseGraphiQLFileServer(
            this IApplicationBuilder applicationBuilder,
            string path)
        {
            var fileServerOptions = new FileServerOptions
            {
                RequestPath        = path,
                FileProvider       = CreateFileProvider(),
                EnableDefaultFiles = true,
                StaticFileOptions  =
                {
                    ContentTypeProvider =
                        new FileExtensionContentTypeProvider()
                }
            };

            return(applicationBuilder.UseFileServer(fileServerOptions));
        }