* Added endpoint to download cover art * Code cleanup * More cleanup
This commit was merged in pull request #97.
This commit is contained in:
+2
-7
@@ -1,10 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Reflection.Metadata;
|
||||
using System.Text;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Icarus.Models;
|
||||
@@ -33,5 +26,7 @@ public class CoverArt
|
||||
|
||||
return (flag == 0) ? filename : $"{filename}{extension}";
|
||||
}
|
||||
|
||||
public async Task<byte[]> GetData() => await File.ReadAllBytesAsync(this.ImagePath);
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user