Files
HopFrame/HopFrame.Api/ControllerExtensions.cs
2024-07-13 18:47:49 +02:00

13 lines
400 B
C#

using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
namespace HopFrame.Api;
public static class ControllerExtensions {
public static IMvcBuilder AddController<TController>(this IMvcBuilder builder) where TController : ControllerBase {
//TODO: Change implementation method
return builder.AddApplicationPart(typeof(TController).Assembly);
}
}