Skip to content

Commit

Permalink
Add Mail Service DependencyInjection
Browse files Browse the repository at this point in the history
  • Loading branch information
huetruong100802 committed Oct 10, 2024
1 parent 1020aa6 commit 7ecd2cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions MBS-COMMAND.API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
builder.Services.AddServicesInfrastructure();
builder.Services.AddRedisInfrastructure(builder.Configuration);
builder.Services.ConfigureCloudinaryOptionsInfrastucture(builder.Configuration.GetSection(nameof(CloudinaryOptions)));
builder.Services.ConfigureMailOptionsInfrastucture(builder.Configuration.GetSection(nameof(MailOption)));

// Add Middleware => Remember using middleware
builder.Services.AddTransient<ExceptionHandlingMiddleware>();
Expand Down
1 change: 0 additions & 1 deletion MBS-COMMAND.API/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"ApiKey": "352838987568689",
"ApiSecret": "a3GLia6ovHgc-8xit46QEs8usWY"
},
,
"MailOption": {
"Mail": "contact.antreevn@gmail.com",
"DisplayName": "Antree",
Expand Down

0 comments on commit 7ecd2cf

Please sign in to comment.