Remove configuration from AddDirectoryBrowser
This commit is contained in:
parent
e7b0a76db9
commit
352edcd7fe
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
using Microsoft.Framework.ConfigurationModel;
|
||||
using Microsoft.Framework.Internal;
|
||||
using Microsoft.AspNet.StaticFiles;
|
||||
|
||||
namespace Microsoft.Framework.DependencyInjection
|
||||
{
|
||||
|
|
@ -17,17 +17,6 @@ namespace Microsoft.Framework.DependencyInjection
|
|||
/// <param name="services"></param>
|
||||
/// <returns></returns>
|
||||
public static IServiceCollection AddDirectoryBrowser([NotNull] this IServiceCollection services)
|
||||
{
|
||||
return services.AddDirectoryBrowser(configuration: null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds directory browser middleware services.
|
||||
/// </summary>
|
||||
/// <param name="services"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <returns></returns>
|
||||
public static IServiceCollection AddDirectoryBrowser([NotNull] this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
return services.AddWebEncoders();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue