19 lines
676 B
C#
19 lines
676 B
C#
using NetinaShop.Domain.Dtos.ResponseDtos;
|
|
|
|
namespace NetinaShop.Infrastructure.Services;
|
|
|
|
public class ExternalFilesService : IExternalFilesService
|
|
{
|
|
private readonly IRestApiWrapper _restApiWrapper;
|
|
private readonly SiteSettings _siteSetting;
|
|
|
|
public ExternalFilesService(IRestApiWrapper restApiWrapper,IOptionsSnapshot<SiteSettings> snapshot)
|
|
{
|
|
_restApiWrapper = restApiWrapper;
|
|
_siteSetting = snapshot.Value;
|
|
}
|
|
public Task<AdminChangeLogResponseDto> GetAdminChangeLogAsync(CancellationToken cancellationToken = default)
|
|
{
|
|
return _restApiWrapper.FileRestApi(_siteSetting.AdminPanelBaseUrl).GetAdminChangeLog();
|
|
}
|
|
} |