Finished database management and user authentication
This commit is contained in:
12
HopFrame.Api/ControllerExtensions.cs
Normal file
12
HopFrame.Api/ControllerExtensions.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
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 {
|
||||
return builder.AddApplicationPart(typeof(TController).Assembly);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user