Skip to content

Commit b4baf91

Browse files
committed
chore: wire up IControllerResourceMapping
1 parent c2d6417 commit b4baf91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore/Builders/JsonApiApplicationBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void ConfigureMvc()
7373

7474
var routingConvention = intermediateProvider.GetRequiredService<IJsonApiRoutingConvention>();
7575
_mvcBuilder.AddMvcOptions(opt => opt.Conventions.Insert(0, routingConvention));
76-
_services.AddSingleton(routingConvention); // <--- why is this needed?
76+
_services.AddSingleton((IControllerResourceMapping)routingConvention);
7777
}
7878

7979
/// <summary>

0 commit comments

Comments
 (0)