blob: f945f036e75974cbe0961d2c618ddf8c21176556 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using Hellang.Middleware.ProblemDetails;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
namespace DevHive.Web.Configurations.Extensions
{
public static class ConfigureProblemDetails
{
public static void ProblemDetailsConfiguration(this IServiceCollection services)
{
services.AddProblemDetails();
}
public static void UseProblemDetailsConfiguration(this IApplicationBuilder app)
{
app.UseProblemDetails();
}
}
}
|