I'm trying to build a file sharing website using MVC. One of the nice to have features are short URL's - Typically in the format such as:
http://site.com/Rtravf2
http://site.com/XddsvgF
http://site.com/AaraEwq
The "actions" at the end of the URL's are in fact Ids which is used to download a file. Urls in this format can all be mapped to the same action method in the home controller, called Download.
Here's the one and only route in my routes table
routes.MapRoute(
"Default", // Route name
"{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
What kind of route should i construct so those Urls can be mapped to the Download action on the Home Controller.
Currently getting a bunch of 404's (naturally!)
Thanks for any pointers.