From d258e3a6ede93e913fb5b0002cafe1a223b60860 Mon Sep 17 00:00:00 2001 From: Maurits Moeys Date: Wed, 16 Oct 2019 18:40:31 +0200 Subject: [PATCH] feat: added new overload in query controllers --- .../Controllers/JsonApiQueryController.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/JsonApiDotNetCore/Controllers/JsonApiQueryController.cs b/src/JsonApiDotNetCore/Controllers/JsonApiQueryController.cs index 9642efbcee..1d49b984ea 100644 --- a/src/JsonApiDotNetCore/Controllers/JsonApiQueryController.cs +++ b/src/JsonApiDotNetCore/Controllers/JsonApiQueryController.cs @@ -12,18 +12,22 @@ public class JsonApiQueryController public JsonApiQueryController( IJsonApiOptions jsonApiOptions, IResourceService resourceService) - : base(jsonApiOptions, resourceService) - { } + : base(jsonApiOptions, resourceService) { } } public class JsonApiQueryController : BaseJsonApiController where T : class, IIdentifiable { + public JsonApiQueryController( + IJsonApiOptions jsonApiContext, + IResourceQueryService resourceQueryService) + : base(jsonApiContext, resourceQueryService) { } + + public JsonApiQueryController( IJsonApiOptions jsonApiOptions, IResourceService resourceService) - : base(jsonApiOptions, resourceService) - { } + : base(jsonApiOptions, resourceService) { } [HttpGet] public override async Task GetAsync() => await base.GetAsync();