Merge pull request #1 from YLSDev/patch-1

Re-add authentication to song download
This commit is contained in:
AveryMadness 2024-02-04 16:21:19 -07:00 committed by GitHub
commit 99519058d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)