Skip to content

Commit

Permalink
removed url helper
Browse files Browse the repository at this point in the history
  • Loading branch information
nijmra committed Nov 19, 2024
1 parent 5e5c22a commit 6d0d2d0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ public async Task<IActionResult> Get(string apiVersion, [FromQuery] string publi
var url = "/api/" + apiVersion + "/documenten?publicatie=" + publicatie + "&page=" + page;

var json = await client.GetFromJsonAsync<PagedResponseModel<JsonNode>>(url, token);

if (json != null)
{
json.Previous = UrlHelper.GetPathAndQuery(json.Previous);
json.Next = UrlHelper.GetPathAndQuery(json.Next);
}

return Ok(json);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ public async Task<IActionResult> Get(string apiVersion, [FromQuery] string? page

var json = await client.GetFromJsonAsync<PagedResponseModel<JsonNode>>(url, token);

if (json != null)
{
json.Previous = UrlHelper.GetPathAndQuery(json.Previous);
json.Next = UrlHelper.GetPathAndQuery(json.Next);
}

return Ok(json);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ public async Task<IActionResult> Get(string apiVersion, [FromQuery] string? page

var json = await client.GetFromJsonAsync<PagedResponseModel<JsonNode>>(url, token);

if (json != null)
{
json.Previous = UrlHelper.GetPathAndQuery(json.Previous);
json.Next = UrlHelper.GetPathAndQuery(json.Next);
}

return Ok(json);
}
}
Expand Down

0 comments on commit 6d0d2d0

Please sign in to comment.