Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (17 sloc) 632 Bytes
using System.Web.Http.Cors;
using CoreySmith.Feature.Forms.Controllers;
using CoreySmith.Feature.Forms.Infrastructure;
using Microsoft.Extensions.DependencyInjection;
using Sitecore.DependencyInjection;
namespace CoreySmith.Feature.Forms
{
public class FormsConfigurator : IServicesConfigurator
{
public void Configure(IServiceCollection serviceCollection)
{
serviceCollection.AddSingleton<ICorsPolicyProviderFactory, SupportsCredentialsCorsPolicyProviderFactory>();
serviceCollection.AddTransient<JssRocksFormApiController>();
serviceCollection.AddTransient<JssRocksFormController>();
}
}
}