Change API Version from V3 to V1

This commit is contained in:
Qstick 2017-10-30 21:28:29 -04:00
parent db10057f2c
commit aae9f3cfc3
155 changed files with 248 additions and 248 deletions

View file

@ -0,0 +1,23 @@
using System.Collections.Generic;
using NzbDrone.Core.DiskSpace;
using Lidarr.Http;
namespace Lidarr.Api.V1.DiskSpace
{
public class DiskSpaceModule :LidarrRestModule<DiskSpaceResource>
{
private readonly IDiskSpaceService _diskSpaceService;
public DiskSpaceModule(IDiskSpaceService diskSpaceService)
:base("diskspace")
{
_diskSpaceService = diskSpaceService;
GetResourceAll = GetFreeSpace;
}
public List<DiskSpaceResource> GetFreeSpace()
{
return _diskSpaceService.GetFreeSpace().ConvertAll(DiskSpaceResourceMapper.MapToResource);
}
}
}