At what point in a Web API app can I intercept the URI arguments and route the calls accordingly?
问题 Note: This question is indeed somewhat similar to this one, but I think I can put it in a simpler and more specific way. I'm using Castle Windsor to intercept the URI passed to my Web API app to register the appropriate concrete class to the Controller's constructor. What I want to be able to do is pass a "site number" on the URI, perhaps always as either the first or last arg. IOW, for site 42, instead of http://localhost:28642/api/platypi/GetAll ...it would be: http://localhost:28642/api