Url Rewriting in Asp.Net core 3.0
Solution 1:
Why not just use two Route attributes instead of that single one...
[Route("api/[controller]")]
[Route("[controller]")]
public class OrderController : ControllerBase
Will work, you could even setup a base controller class with those attributes and never have to deal with it again (I think)