Skip to content

Commit

Permalink
fix: Put Route on Action
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Mar 26, 2024
1 parent ff062d2 commit b8258d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LinkDotNet.Blog.Web/Controller/RssFeedController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

namespace LinkDotNet.Blog.Web.Controller;

[Route("feed.rss")]
public sealed class RssFeedController : ControllerBase
{
private static readonly XmlWriterSettings Settings = CreateXmlWriterSettings();
Expand All @@ -38,7 +39,6 @@ public RssFeedController(

[ResponseCache(Duration = 1200)]
[HttpGet]
[Route("feed.rss")]
public async Task<IActionResult> GetRssFeed()
{
var url = $"{Request.Scheme}://{Request.Host}{Request.PathBase}";
Expand Down

0 comments on commit b8258d0

Please sign in to comment.