From 093475065fa0b0baa1eabdd9eef91c68fe89407b Mon Sep 17 00:00:00 2001 From: YLSDev <41091863+YLSDev@users.noreply.github.com> Date: Mon, 5 Feb 2024 02:20:05 +0300 Subject: [PATCH] Re-add authentication to song download --- Server/Source/Routes/Downloads.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/Source/Routes/Downloads.ts b/Server/Source/Routes/Downloads.ts index 84e974f..6c4652f 100644 --- a/Server/Source/Routes/Downloads.ts +++ b/Server/Source/Routes/Downloads.ts @@ -73,6 +73,7 @@ async (req, res) => { }); App.get("/:InternalID", +RequireAuthentication() async (req, res, next) => { const SongData = await Song.findOne({ where: { ID: req.params.InternalID }, relations: { Author: true } }); if (!SongData) @@ -98,4 +99,4 @@ async (req, res, next) => { export default { App -} \ No newline at end of file +}