Skip to content

Commit

Permalink
Merge pull request #972 from bcgov/develop
Browse files Browse the repository at this point in the history
merge into master
  • Loading branch information
AlessiaYChen authored Nov 26, 2024
2 parents b1278d2 + 589fb11 commit 7bf2411
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Gov.News.WebApp/Controllers/DefaultController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ public async Task<ActionResult> Search(string q = null, string date = null, stri
}

[ResponseCache(CacheProfileName = "Default")]
public async Task<ActionResult> Sitemap()
public async Task<ActionResult> Sitemap(int? count=null, int skip=0)
{
List<Uri> model = new List<Uri>();

var defaultPostKeys = await Repository.ApiClient.Posts.GetAllKeysAsync("home", "default", "default", null, 0, Repository.APIVersion);

var defaultPostKeys = await Repository.ApiClient.Posts.GetAllKeysAsync("home", "default", "default", count, skip, Repository.APIVersion);
foreach (var pair in defaultPostKeys)
{
model.Add(NewsroomExtensions.GetPostUri(pair.Value, pair.Key));
Expand Down

0 comments on commit 7bf2411

Please sign in to comment.