Merge pull request #1 from YLSDev/patch-1
Re-add authentication to song download
This commit is contained in:
commit
99519058d7
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user