Skip to content

Commit

Permalink
Add Problem Details
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightczx committed Feb 1, 2024
1 parent 9062307 commit c66971d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Snap.Hutao.Server/Snap.Hutao.Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public static void Main(string[] args)
.AddEndpointsApiExplorer()
.AddHttpClient()
.AddMemoryCache()
.AddProblemDetails()
.AddQuartz(config =>
{
config.ScheduleJob<GachaLogStatisticsRefreshJob>(t => t.StartNow().WithCronSchedule("0 30 */1 * * ?"));
Expand Down Expand Up @@ -176,6 +177,7 @@ public static void Main(string[] args)
// 中间件的顺序敏感
// https://learn.microsoft.com/zh-cn/aspnet/core/fundamentals/middleware/#middleware-order
// ExceptionHandler
app.UseExceptionHandler();

// HSTS
// HttpsRedirection
Expand Down

0 comments on commit c66971d

Please sign in to comment.