Skip to content

Commit 19a3822

Browse files
committed
feat(service-provider-ext): inject IMetaBuilder
1 parent aaabb1a commit 19a3822

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/JsonApiDotNetCore/Extensions/ServiceProviderExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using JsonApiDotNetCore.Builders;
23
using JsonApiDotNetCore.Configuration;
34
using JsonApiDotNetCore.Data;
45
using JsonApiDotNetCore.Formatters;
@@ -54,6 +55,8 @@ public static void AddJsonApiInternals<TContext>(this IServiceCollection service
5455
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
5556

5657
services.AddScoped<JsonApiRouteHandler>();
58+
59+
services.AddScoped<IMetaBuilder, MetaBuilder>();
5760
}
5861

5962
public static void SerializeAsJsonApi(this MvcOptions options, JsonApiOptions jsonApiOptions)

0 commit comments

Comments
 (0)