BuildFeed/App_Start/RouteConfig.cs
Thomas Hounsell 70130aace3 Lotsafixes, return of the search
That'll be #8 wrapped up, plus some more of #7
2015-05-30 15:14:09 +01:00

29 lines
699 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web.Http;
namespace BuildFeed
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapHttpRoute(
name: "API",
routeTemplate: "api/{action}/{id}",
defaults: new { controller = "api", action = "GetBuilds", id = UrlParameter.Optional }
);
routes.AppendTrailingSlash = true;
routes.MapMvcAttributeRoutes();
}
}
}