Closed jbogard closed 10 years ago
In the case I don't want to create a RouteLinker, what do you think about extending the UrlHelper inside an ApiController? Something like this:
https://gist.github.com/jbogard/7918898
Obviously I'd namespace this accordingly so that it's opt-in.
I hadn't thought about that, but it looks like a great addition.
I anyone feels inclined to turn the above gist into a pull request, please don't forget to add some unit tests too :)
In the case I don't want to create a RouteLinker, what do you think about extending the UrlHelper inside an ApiController? Something like this:
https://gist.github.com/jbogard/7918898
Obviously I'd namespace this accordingly so that it's opt-in.