diff options
Diffstat (limited to 'ApartmentManager/HousingWebAPI/Areas/HelpPage/HelpPageAreaRegistration.cs')
-rw-r--r-- | ApartmentManager/HousingWebAPI/Areas/HelpPage/HelpPageAreaRegistration.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ApartmentManager/HousingWebAPI/Areas/HelpPage/HelpPageAreaRegistration.cs b/ApartmentManager/HousingWebAPI/Areas/HelpPage/HelpPageAreaRegistration.cs new file mode 100644 index 0000000..a3c0ce1 --- /dev/null +++ b/ApartmentManager/HousingWebAPI/Areas/HelpPage/HelpPageAreaRegistration.cs @@ -0,0 +1,26 @@ +using System.Web.Http; +using System.Web.Mvc; + +namespace HousingWebAPI.Areas.HelpPage +{ + public class HelpPageAreaRegistration : AreaRegistration + { + public override string AreaName + { + get + { + return "HelpPage"; + } + } + + public override void RegisterArea(AreaRegistrationContext context) + { + context.MapRoute( + "HelpPage_Default", + "Help/{action}/{apiId}", + new { controller = "Help", action = "Index", apiId = UrlParameter.Optional }); + + HelpPageConfig.Register(GlobalConfiguration.Configuration); + } + } +}
\ No newline at end of file |