using System.Web.Http;
using System.Web.Mvc;

namespace JiouSDP.Areas.OpenApi
{
    public class SyncApiAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Api";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            //context.MapRoute(
            //    "Api_default",
            //    "Api/{controller}/{action}/{id}",
            //    new {  action = RouteParameter.Optional, id = UrlParameter.Optional }
            //);

            context.Routes.MapHttpRoute(
            name: "Api_default",
            routeTemplate: "Api/{controller}/{action}/{id}",
            defaults: new { controller = "Api", action = RouteParameter.Optional, id = UrlParameter.Optional });
        }
    }
}
