Re-add authentication to song download

This commit is contained in:
YLSDev 2024-02-05 02:20:05 +03:00 committed by GitHub
parent 6764b39137
commit 093475065f
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", App.get("/:InternalID",
RequireAuthentication()
async (req, res, next) => { async (req, res, next) => {
const SongData = await Song.findOne({ where: { ID: req.params.InternalID }, relations: { Author: true } }); const SongData = await Song.findOne({ where: { ID: req.params.InternalID }, relations: { Author: true } });
if (!SongData) if (!SongData)
@ -98,4 +99,4 @@ async (req, res, next) => {
export default { export default {
App App
} }