mirror of
https://github.com/mmahdium/HoolIt.git
synced 2025-08-03 00:14:26 +02:00
Remove unnecessary comments
This commit is contained in:
@@ -51,9 +51,9 @@ createApi.MapGet("/{feedId}", async (HttpContext context, string feedId) =>
|
||||
};
|
||||
var addFailedResponse =
|
||||
JsonSerializer.Serialize(faultResponse, AppJsonSerializerContext.Default.AddDweetFailedResponse);
|
||||
context.Response.StatusCode = 500; // Set the status code to 500
|
||||
context.Response.ContentType = "application/json"; // Set Content-Type to application/json
|
||||
await context.Response.WriteAsync(addFailedResponse); // Write the JSON error response to the body
|
||||
context.Response.StatusCode = 500;
|
||||
context.Response.ContentType = "application/json";
|
||||
await context.Response.WriteAsync(addFailedResponse);
|
||||
await context.Response.CompleteAsync();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user