We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2d6417 commit b4baf91Copy full SHA for b4baf91
src/JsonApiDotNetCore/Builders/JsonApiApplicationBuilder.cs
@@ -73,7 +73,7 @@ public void ConfigureMvc()
73
74
var routingConvention = intermediateProvider.GetRequiredService<IJsonApiRoutingConvention>();
75
_mvcBuilder.AddMvcOptions(opt => opt.Conventions.Insert(0, routingConvention));
76
- _services.AddSingleton(routingConvention); // <--- why is this needed?
+ _services.AddSingleton((IControllerResourceMapping)routingConvention);
77
}
78
79
/// <summary>
0 commit comments