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>();
	}
}