Implement endpoints in more flexible way.
Fix: re-implement `UserEndpoint` as static style which works best with minimal API, simplify the DI framework. Fix: remove no needed service register in main program.
This commit is contained in:
@ -107,9 +107,6 @@ static class ExtensionMethods
|
||||
{
|
||||
// Application services
|
||||
builder.Services.AddScoped<IUserService, UserService>();
|
||||
|
||||
// WebAPI Endpoint services
|
||||
builder.Services.AddScoped<UserEndpoint>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user