24 lines
831 B
C#
24 lines
831 B
C#
// 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.Internal;
|
|
using Microsoft.AspNet.StaticFiles;
|
|
|
|
namespace Microsoft.Framework.DependencyInjection
|
|
{
|
|
/// <summary>
|
|
/// Extension methods for adding directory browser services.
|
|
/// </summary>
|
|
public static class DirectoryBrowserServiceExtensions
|
|
{
|
|
/// <summary>
|
|
/// Adds directory browser middleware services.
|
|
/// </summary>
|
|
/// <param name="services"></param>
|
|
/// <returns></returns>
|
|
public static IServiceCollection AddDirectoryBrowser([NotNull] this IServiceCollection services)
|
|
{
|
|
return services.AddWebEncoders();
|
|
}
|
|
}
|
|
} |