aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Startup.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-19 21:12:49 +0200
committertranstrike <transtrike@gmail.com>2021-01-19 21:12:49 +0200
commit90e0126d4078b5fef44b085b34caf7a35161ff50 (patch)
treeb7f4692b52444caebd9931115c91aefc97b2ebb3 /src/DevHive.Web/Startup.cs
parent33b5f6297c2c975bec8a74a8facc208261c03c9e (diff)
downloadDevHive-90e0126d4078b5fef44b085b34caf7a35161ff50.tar
DevHive-90e0126d4078b5fef44b085b34caf7a35161ff50.tar.gz
DevHive-90e0126d4078b5fef44b085b34caf7a35161ff50.zip
Added Custom Middleware for Exception Handling
Diffstat (limited to 'src/DevHive.Web/Startup.cs')
-rw-r--r--src/DevHive.Web/Startup.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DevHive.Web/Startup.cs b/src/DevHive.Web/Startup.cs
index 94aabe8..4e55873 100644
--- a/src/DevHive.Web/Startup.cs
+++ b/src/DevHive.Web/Startup.cs
@@ -33,6 +33,7 @@ namespace DevHive.Web
services.JWTConfiguration(Configuration);
services.AutoMapperConfiguration();
services.DependencyInjectionConfiguration();
+ services.CustomMiddlewareConfiguration();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@@ -47,7 +48,6 @@ namespace DevHive.Web
if (env.IsDevelopment())
{
//app.UseDeveloperExceptionPage();
- app.UseExceptionHandler("/api/Error");
app.UseSwaggerConfiguration();
}
else
@@ -58,6 +58,7 @@ namespace DevHive.Web
app.UseDatabaseConfiguration();
app.UseAutoMapperConfiguration();
+ app.UseCustomMiddlewareConfiguration();
app.UseEndpoints(endpoints =>
{