DEV Community

loading...

Discussion on: REST API versioning with ASP.NET Core

Collapse
prayatna profile image
Prayatna Bhattarai

You can try adding two url paths like
[Route("api/[controller]")]
[Route("api/v{version:apiVersion}/[controller]")]
for your base controller so that it uses both url