mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
70130aace3
That'll be #8 wrapped up, plus some more of #7
29 lines
699 B
C#
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();
|
|
}
|
|
}
|
|
}
|