23 lines
823 B
C#
23 lines
823 B
C#
using Netina.Core.Abstracts;
|
|
using Netina.Domain.Dtos.ResponseDtos;
|
|
using Netina.Domain.Models.Settings;
|
|
using Netina.Infrastructure.RestServices;
|
|
|
|
namespace Netina.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 async Task<AdminChangeLogResponseDto> GetAdminChangeLogAsync(CancellationToken cancellationToken = default)
|
|
{
|
|
var changeLog = await _restApiWrapper.FileRestApi(_siteSetting.AdminPanelBaseUrl).GetAdminChangeLog();
|
|
return changeLog;
|
|
}
|
|
} |