Skip to content

api verison with same RoutePrefix will throw an exception #3

@chengwhynot

Description

@chengwhynot

two controllers with same RoutePrefix, using current LearningControllerSelector will throw an null reference exception, because of the routeData.Values["controller"] is null.

According to this answer, I changed the SelectController(), and named all my controllers using naming convension ...V1(2 and etc)Controller , now it can find correct controller

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