This commit is contained in:
2025-10-27 17:39:18 -04:00
commit 31f723bea4
1579 changed files with 642409 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using Microsoft.AspNetCore.Routing;
namespace Prefab.Endpoints;
/// <summary>
/// Defines a contract for registering application endpoints with an endpoint route builder.
/// </summary>
/// <remarks>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.</remarks>
public interface IEndpointRegistrar
{
/// <summary>
/// Configures application endpoints using the specified endpoint route builder.
/// </summary>
/// <param name="endpoints">The endpoint route builder used to map routes for the application. Cannot be null.</param>
void MapEndpoints(IEndpointRouteBuilder endpoints);
}