Refactor code formatting and improve readability: standardize line breaks and indentation across various endpoint files, enhancing code clarity and maintainability. Update package version formatting in Directory.Packages.props for consistency.
This commit is contained in:
@@ -41,7 +41,9 @@ public static class MetadataEndpoints
|
||||
admin.MapPost("/shows/{showId:guid}/apply", Apply).Produces(StatusCodes.Status204NoContent);
|
||||
admin.MapPut("/shows/{showId:guid}", Update).Produces(StatusCodes.Status204NoContent);
|
||||
admin.MapDelete("/shows/{showId:guid}", Clear).Produces(StatusCodes.Status204NoContent);
|
||||
admin.MapPut("/shows/{showId:guid}/poster", UploadPoster).Produces(StatusCodes.Status204NoContent);
|
||||
admin
|
||||
.MapPut("/shows/{showId:guid}/poster", UploadPoster)
|
||||
.Produces(StatusCodes.Status204NoContent);
|
||||
admin
|
||||
.MapPut("/shows/{showId:guid}/poster-image", SetPosterImage)
|
||||
.Produces(StatusCodes.Status204NoContent);
|
||||
@@ -51,7 +53,10 @@ public static class MetadataEndpoints
|
||||
return app;
|
||||
}
|
||||
|
||||
private static async Task<IResult> GetProviders(ISender sender, CancellationToken cancellationToken)
|
||||
private static async Task<IResult> GetProviders(
|
||||
ISender sender,
|
||||
CancellationToken cancellationToken
|
||||
)
|
||||
{
|
||||
var providers = await sender.Send(new GetMetadataProvidersQuery(), cancellationToken);
|
||||
return Results.Ok(providers);
|
||||
@@ -64,7 +69,10 @@ public static class MetadataEndpoints
|
||||
CancellationToken cancellationToken
|
||||
)
|
||||
{
|
||||
var result = await sender.Send(new SearchShowMetadataQuery(provider, query), cancellationToken);
|
||||
var result = await sender.Send(
|
||||
new SearchShowMetadataQuery(provider, query),
|
||||
cancellationToken
|
||||
);
|
||||
return result.ToHttpResult();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user