using Microsoft.Extensions.DependencyInjection;

namespace ScadaLink.InboundAPI;

public static class ServiceCollectionExtensions
{
    public static IServiceCollection AddInboundAPI(this IServiceCollection services)
    {
        services.AddScoped<ApiKeyValidator>();
        services.AddSingleton<InboundScriptExecutor>();
        services.AddScoped<RouteHelper>();

        return services;
    }
}
