using Microsoft.AspNetCore.Routing;
namespace Prefab.Endpoints;
///
/// Defines a contract for registering application endpoints with an endpoint route builder.
///
/// Implement this interface to configure and map endpoints, such as HTTP routes, to the application's
/// routing system. This is typically used during application startup to organize endpoint registration logic.
public interface IEndpointRegistrar
{
///
/// Configures application endpoints using the specified endpoint route builder.
///
/// The endpoint route builder used to map routes for the application. Cannot be null.
void MapEndpoints(IEndpointRouteBuilder endpoints);
}