summaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Program.cs b/Program.cs
index 361be3e..d3db670 100644
--- a/Program.cs
+++ b/Program.cs
@@ -1,7 +1,9 @@
using Microsoft.EntityFrameworkCore;
using MyDarling.Models;
+using MyDarling.Services;
using Microsoft.AspNetCore.Identity;
+
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDbContext<DataContext>(opts =>
@@ -25,6 +27,7 @@ builder.Services.Configure<IdentityOptions>( opts =>
opts.User.AllowedUserNameCharacters = "abcdefghijklmnopqrstuvwxyz";
});
+builder.Services.AddTransient<IImageResizer, ImageResizer>();
builder.Services.AddControllersWithViews();
builder.Services.AddRazorPages();