Skip to content

Commit

Permalink
Remove the extra Route attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
VahidN committed Aug 19, 2024
1 parent 3082ba4 commit 96d1ea8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DNTCaptcha.Core/DNTCaptcha.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>DNTCaptcha.Core is a captcha generator and validator for ASP.NET Core applications.</Description>
<VersionPrefix>5.2.5</VersionPrefix>
<VersionPrefix>5.2.6</VersionPrefix>
<Authors>Vahid Nasiri</Authors>
<TargetFrameworks>net8.0;net7.0;net6.0;</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
4 changes: 2 additions & 2 deletions src/DNTCaptcha.Core/DNTCaptchaImageController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public DNTCaptchaImageController(ICaptchaImageProvider captchaImageProvider,
/// Refresh the captcha
/// </summary>
[ResponseCache(Location = ResponseCacheLocation.None, NoStore = true, Duration = 0)]
[Route("[action]"), HttpGet("[action]"), HttpPost("[action]")]
[HttpGet("[action]"), HttpPost("[action]")]
public IActionResult Refresh(string data)
{
try
Expand Down Expand Up @@ -182,7 +182,7 @@ private void invalidateToken(DNTCaptchaTagHelperHtmlAttributes model)
/// Creates the captcha image.
/// </summary>
[ResponseCache(Location = ResponseCacheLocation.None, NoStore = true, Duration = 0)]
[Route("[action]"), HttpGet("[action]"), HttpPost("[action]")]
[HttpGet("[action]"), HttpPost("[action]")]
public IActionResult Show(string data)
{
try
Expand Down

0 comments on commit 96d1ea8

Please sign in to comment.