You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
576 B
22 lines
576 B
using Kynareth.Attributes;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Kynareth.Controllers;
|
|
|
|
[ApiController]
|
|
[RequireToken]
|
|
public class BaseController<T> : ControllerBase
|
|
{
|
|
protected readonly IWebHostEnvironment _appEnvironment;
|
|
|
|
protected readonly ILogger<T> _logger;
|
|
|
|
protected readonly IConfiguration _configuration;
|
|
|
|
public BaseController(IConfiguration configuration, ILoggerFactory loggerFactory, IWebHostEnvironment appEnvironment) : base()
|
|
{
|
|
_configuration = configuration;
|
|
_appEnvironment = appEnvironment;
|
|
_logger = loggerFactory.CreateLogger<T>();
|
|
}
|
|
} |