From f50957985300c3bfc6ae5564d7eaa67e099ca8f2 Mon Sep 17 00:00:00 2001 From: transtrike Date: Thu, 10 Dec 2020 13:45:35 +0200 Subject: Change HTTP port --- API/Startup.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'API/Startup.cs') diff --git a/API/Startup.cs b/API/Startup.cs index 61bcaff..6167993 100644 --- a/API/Startup.cs +++ b/API/Startup.cs @@ -56,6 +56,10 @@ namespace API app.UseSwagger(); app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "API v1")); } + else + { + app.UseExceptionHandler(); + } app.UseHttpsRedirection(); app.UseRouting(); -- cgit v1.2.3