diff --git a/Controllers/SongCompressedDataControllers.cs b/Controllers/SongCompressedDataControllers.cs index 862b46f..672a57c 100644 --- a/Controllers/SongCompressedDataControllers.cs +++ b/Controllers/SongCompressedDataControllers.cs @@ -5,6 +5,7 @@ using System.IO; using System.Linq; using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; @@ -44,6 +45,7 @@ namespace Icarus.Controllers #region API Routes [HttpGet("{id}")] + [Authorize("download:songs")] public async Task Get(int id) { MusicStoreContext context = HttpContext.RequestServices