// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Routing;
using Microsoft.Framework.OptionsModel;
namespace Microsoft.AspNet.Mvc
{
///
/// Sets up MVC default options for .
///
public class MvcRouteOptionsSetup : ConfigureOptions
{
public MvcRouteOptionsSetup()
: base(ConfigureRouting)
{
Order = DefaultOrder.DefaultFrameworkSortOrder;
}
///
/// Configures the .
///
/// The .
public static void ConfigureRouting(RouteOptions options)
{
options.ConstraintMap.Add("exists", typeof(KnownRouteValueConstraint));
}
}
}