Resvolution - UmbracoApiControllerResolver

This commit is contained in:
Stephan
2016-08-19 14:44:56 +02:00
parent cac14d57eb
commit 169735dab9
9 changed files with 34 additions and 39 deletions

View File

@@ -56,7 +56,7 @@ namespace Umbraco.Web
var area = "";
var apiController = UmbracoApiControllerResolver.Current.RegisteredUmbracoApiControllers
var apiController = Current.UmbracoApiControllerTypes
.SingleOrDefault(x => x == apiControllerType);
if (apiController == null)
throw new InvalidOperationException("Could not find the umbraco api controller of type " + apiControllerType.FullName);