I'm writing a small Web API controller. Currently I've routed a
[HttpGet("{id}"}]
path and it works fine: localhost:8080/Controller/1 returns the item with the id equal to 1.
The problem is that I am trying to add a 'get by name' request:
[HttpGet("{name}")]
How can I go about doing this?
Thank you for your time