Skip to content

Commit

Permalink
Removed route sitemap base route which was causing a multiple route m…
Browse files Browse the repository at this point in the history
…atch in PT (#125)
  • Loading branch information
simonjfirth authored Aug 9, 2024
1 parent 80c7119 commit 4dcf1bd
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/Dfe.ContentSupport.Web/Controllers/SitemapController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,7 @@ namespace Dfe.ContentSupport.Web.Controllers;
[AllowAnonymous]
public class SitemapController(IContentService contentfulService) : Controller
{
[HttpGet]
[Route("/")]
public IActionResult Index()
{
var defaultModel = new CsPage
{
Heading = new Models.Heading
{
Title = "Department for Education",
Subtitle = "Content and Support"
}
};


return View(defaultModel);
}


[HttpGet]
[Route("/sitemap.xml")]
Expand Down

0 comments on commit 4dcf1bd

Please sign in to comment.