Skip to content

Commit

Permalink
Fixing ambiguous HTTP methods as warned by Swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Jul 26, 2024
1 parent 9282ffe commit 9986850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class CrossTenantServicesController : Controller
// A simple route for convenience. You can access this from under /CrossTenantServices?contentItemId=ID. Here ID
// needs to be a content item ID that you can get e.g. from the URL when you open an item to edit from the admin (it
// looks something like "4da2sme18cc2k2r5d4w23d4cwj" which is NOT made by a cat walking across the keyboard!).
[Route("CrossTenantServices")]
[HttpGet, Route("CrossTenantServices")]
public async Task<string> Index(string contentItemId)
{
// If ModelState is not in a valid state we should abort the action and return null.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public ActionResult Index()
}

// Let's see some custom routing here. This attribute will override the default route and use this one.
[Route("TrainingDemo/NotifyMe")]
[HttpGet, Route("TrainingDemo/NotifyMe")]
public async Task<IActionResult> NotifyMe()
{
// ILogger is an ASP.NET Core service that will write something into the specific log files. In Orchard Core
Expand Down

0 comments on commit 9986850

Please sign in to comment.