Is there a way to automatically add a suffix on all endpoint routes e.g .json.
v1/users.json
v1/users/{id}.json
so what I have tried so far is I created a BaseController which look like this
[ApiController]
[Route("v1/[controller].json")]
public class BaseController : ControllerBase
{
}
but every time I use it to my controller it looks like this
v1/users.json
v1/users.json/{id}
{id}.jsonshould be mapped to a controller action and not to the controller..jsonon all endpoints but drop it during routing: learn.microsoft.com/en-us/aspnet/core/fundamentals/…