A lot of refactoring, and etc #232

Open
Rudxain wants to merge 62 commits from Rudxain/patch-1 into master
Showing only changes of commit 9e0309a33b - Show all commits

View file

@ -5,8 +5,8 @@ module.exports = async (app, req, res) => {
let songID = req.params.song let songID = req.params.song
req.gdRequest('getGJSongInfo', {songID: songID}, function(err, resp, body) { req.gdRequest('getGJSongInfo', {songID: songID}, function(err, resp, body) {
return err ? return err
res.sendError(400) : ? res.sendError(400)
res.send(!body.startsWith("-") && body.length > 10) : res.send(!body.startsWith("-") && body.length > 10)
}) })
} }