AttributeRouting
AttributeRouting copied to clipboard
Define your routes using attributes on actions in ASP.NET MVC and Web API.
The title says it all... A notice on the front page here on GitHub and at http://attributerouting.net/ to inform that AttributeRouting is being integrated into ASP.NET MVC 5. This would...
When using the configuration.AddRoutesFromAssembly method it does not seem RoutePrefix or RouteArea attributes are observed. See below sample code/test: ``` [RouteArea("Fakes")] [RoutePrefix("FakeItems")] public class FakeItemsController : Controller { [GET("Index")] public...
I don't know how readily reproduciable this is, but on our server that we recently upgraded to .NET 4.5.1 alot of applications broke. The crux of it seems to be...
Currently experiencing an issue with the HTTP method attributes that result in **"The requested resource does not support http method '``'."** - .NET 4.5. - ASP.NET Web API (latest). -...
Following the AttributeRouting.NET localization example I have: ``` routes.MapAttributeRoutes(config => { config.ConstrainTranslatedRoutesByCurrentUICulture = true; config.CurrentUICultureResolver = (httpContext, routeData) => { return (string)routeData.Values["culture"] ?? Thread.CurrentThread.CurrentUICulture.Name; }; config.UseRouteHandler(() => new CultureRouteHandler()); });...
Given an action method with a route defined as below, the URL `/Index` does not match any route. ``` public class HomeController : Controller { [GET("Index?{page=1}")] public ActionResult Index(int page)...
Something to be aware of, as there's no authentication by default on routes.axd anyone can have a snoop a your route configuration, which may expose stuff you'd rather not people...
I have the following ASP.NET MVC routing rules: ``` csharp routes.MapRoute( name: "BlogCategory", url: "category/{slug}", defaults: new { controller = "Blog", action = "Category", page = 1 } ); routes.MapRoute(...
Hi. is it possible to have area with two routes? for example: [RouteArea("{culture}/testarea")] // with specific culture [RouteArea("testarea")] // with default culture LocalizableAreaBaseController : Controller { .... } Thank You!
- Features Not Working - Routes Not Working in RC+ - ApiExplorer Shows Extraneous Routes This is going to be a master list of workarounds for Web API integration issues....