12 lines
468 B
C#
12 lines
468 B
C#
using RhSolutions.SkuParser.Services;
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
builder.Services
|
|
.AddKeyedScoped<ISkuParser, CsvParser>("text/csv")
|
|
.AddKeyedScoped<ISkuParser, ExcelParser>("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
|
|
.AddKeyedScoped<ISkuParser, ExcelParser>("application/vnd.ms-excel.sheet.macroenabled.12");
|
|
builder.Services.AddControllers();
|
|
|
|
var app = builder.Build();
|
|
app.MapControllers();
|
|
app.Run(); |