using FastEndpoints;

using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;

namespace Common.Api;

public static class DependencyInjectionExtensions
{
	public static IServiceCollection AddEndpoints(this IServiceCollection services)
	{
		_ = services.AddFastEndpoints();

		return services;
	}

	public static IApplicationBuilder UseEndpoints(this IApplicationBuilder app)
	{
		_ = app.UseFastEndpoints();

		return app;
	}
}
