Updated delete logic for voice works.
This commit is contained in:
@@ -53,6 +53,23 @@ public static class WebApplicationExtensions
|
||||
}
|
||||
});
|
||||
|
||||
app.UseExceptionHandler(errorApp =>
|
||||
{
|
||||
errorApp.Run(async context =>
|
||||
{
|
||||
context.Response.StatusCode = StatusCodes.Status500InternalServerError;
|
||||
context.Response.ContentType = "application/problem+json";
|
||||
|
||||
await Results.Problem(
|
||||
title: "An unexpected error occurred.",
|
||||
detail: app.Environment.IsDevelopment()
|
||||
? "Check the API logs for details."
|
||||
: null,
|
||||
statusCode: StatusCodes.Status500InternalServerError
|
||||
).ExecuteAsync(context);
|
||||
});
|
||||
});
|
||||
|
||||
return app;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user