public ApiHttpConfiguration() { var lowercaseRouteConstraint = new LowercaseRouteConstraint(); Services.Replace(typeof(IHttpControllerActivator), new FileAuditManagerHttpControllerActivator()); ConfigureApplicationController(); ConfigureDeploymentController(); ConfigureAuditController(); ConfigureHealthController(); foreach (var route in Routes) { route.Constraints.Add("url", lowercaseRouteConstraint); } }
public ApiHttpConfiguration() { var lowercaseRouteConstraint = new LowercaseRouteConstraint(); Services.Replace(typeof(IHttpControllerActivator), new FileAuditManagerHttpControllerActivator()); ConfigureApplicationController(); ConfigureDeploymentController(); ConfigureAuditController(); ConfigureHealthController(); foreach (var route in Routes) { route.Constraints.Add("url", lowercaseRouteConstraint); } }