Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Halter <halter73@gmail.com>2022-04-23 02:27:39 +0300
committerStephen Halter <halter73@gmail.com>2022-04-23 02:27:39 +0300
commit38b20d5c9722bb95bfb5a60238281425b60562d5 (patch)
treeb429c84538c653509196d6f3508eb9efba9585b7
parent77fa8948d4163f022215fd9e8312115094fd2738 (diff)
Clean StartupForGroupshalter73/36007
-rw-r--r--src/Mvc/test/WebSites/RoutingWebSite/StartupForGroups.cs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Mvc/test/WebSites/RoutingWebSite/StartupForGroups.cs b/src/Mvc/test/WebSites/RoutingWebSite/StartupForGroups.cs
index 44c0c42493..24eb14cb90 100644
--- a/src/Mvc/test/WebSites/RoutingWebSite/StartupForGroups.cs
+++ b/src/Mvc/test/WebSites/RoutingWebSite/StartupForGroups.cs
@@ -2,9 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.AspNetCore.Mvc;
-using Microsoft.AspNetCore.Mvc.ApplicationModels;
using Microsoft.AspNetCore.Mvc.Infrastructure;
-using Microsoft.AspNetCore.Mvc.Routing;
namespace RoutingWebSite;
@@ -13,11 +11,7 @@ public class StartupForGroups
// Set up application services
public void ConfigureServices(IServiceCollection services)
{
- var pageRouteTransformerConvention = new PageRouteTransformerConvention(new SlugifyParameterTransformer());
-
- services
- .AddMvc()
- .AddNewtonsoftJson();
+ services.AddMvc().AddNewtonsoftJson();
// Used by some controllers defined in this project.
services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));