Add Exception middleware
This commit is contained in:
12
Installers/InstallExceptionsMiddleware.cs
Normal file
12
Installers/InstallExceptionsMiddleware.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Diary.Shared;
|
||||
|
||||
namespace Diary.Installers
|
||||
{
|
||||
public static class InstallExceptionsMiddleware
|
||||
{
|
||||
public static void AddExceptionsMiddleware(this IServiceCollection services)
|
||||
{
|
||||
services.AddScoped<ExceptionHandlingMiddleware>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user