I have an WebApi 2 application which has become popular with our customers and as a result we're aiming to make it as generic as possible so that subtle changes to the application will be available to all but I have a problem.
My plan was to use the brand of each company to determine which database connection string to use and this would allow me to leave the javascript I've written as it is. With this in mind I need to find a way to route my application a little like this:
api/{brand}/{controller}/{id}
Currently it is:
api/{controller}/{id}
Does anyone know of a way to add to the route before {controller} so that it still points to the same controller?