Skip to content

Routes defined in attributes are ignored #1

Description

@d3jv

Trying this library and I found out that routes defined with the [Route] attribute in controllers are ignored completely.

[Route("")]
public class HomeController : BaseController
{
    public IActionResult Index()
    {
...

results in example.com/index in the sitemap, which is wrong.

Also:

[Route("something")]
public class SomeController : BaseController
{
    [HttpGet("something_else")]
    public IActionResult Method()
    {
...

results in example.com/method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions