diff options
Diffstat (limited to 'Program.cs')
-rw-r--r-- | Program.cs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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(); |