Skip to content

Instantly share code, notes, and snippets.

public class SomeApiGroup : IEndpointsGroup<SomeApiGroup.Dependencies>
{
public record Dependencies(
ILogger Logger,
ProductsApplicationService service);
internal static RouteGroupBuilder MapEndpoints(this WebApplication app)
{
var group = app.MapGroup("/products");