Skip to content

Commit ee7b2c8

Browse files
authored
feat: added new overload in query controllers (#580)
1 parent 8d90ac9 commit ee7b2c8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/JsonApiDotNetCore/Controllers/JsonApiQueryController.cs

+8-4
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,22 @@ public class JsonApiQueryController<T>
1212
public JsonApiQueryController(
1313
IJsonApiOptions jsonApiOptions,
1414
IResourceService<T, int> resourceService)
15-
: base(jsonApiOptions, resourceService)
16-
{ }
15+
: base(jsonApiOptions, resourceService) { }
1716
}
1817

1918
public class JsonApiQueryController<T, TId>
2019
: BaseJsonApiController<T, TId> where T : class, IIdentifiable<TId>
2120
{
21+
public JsonApiQueryController(
22+
IJsonApiOptions jsonApiContext,
23+
IResourceQueryService<T, TId> resourceQueryService)
24+
: base(jsonApiContext, resourceQueryService) { }
25+
26+
2227
public JsonApiQueryController(
2328
IJsonApiOptions jsonApiOptions,
2429
IResourceService<T, TId> resourceService)
25-
: base(jsonApiOptions, resourceService)
26-
{ }
30+
: base(jsonApiOptions, resourceService) { }
2731

2832
[HttpGet]
2933
public override async Task<IActionResult> GetAsync() => await base.GetAsync();

0 commit comments

Comments
 (0)