mirror of
https://github.com/mmahdium/HoolIt.git
synced 2025-08-03 08:24: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 =
|
var addFailedResponse =
|
||||||
JsonSerializer.Serialize(faultResponse, AppJsonSerializerContext.Default.AddDweetFailedResponse);
|
JsonSerializer.Serialize(faultResponse, AppJsonSerializerContext.Default.AddDweetFailedResponse);
|
||||||
context.Response.StatusCode = 500; // Set the status code to 500
|
context.Response.StatusCode = 500;
|
||||||
context.Response.ContentType = "application/json"; // Set Content-Type to application/json
|
context.Response.ContentType = "application/json";
|
||||||
await context.Response.WriteAsync(addFailedResponse); // Write the JSON error response to the body
|
await context.Response.WriteAsync(addFailedResponse);
|
||||||
await context.Response.CompleteAsync();
|
await context.Response.CompleteAsync();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user