10 lines
No EOL
322 B
JavaScript
10 lines
No EOL
322 B
JavaScript
module.exports = async (app, req, res) => {
|
|
|
|
if (req.offline) return res.sendError()
|
|
|
|
let songID = req.params.song
|
|
req.gdRequest('getGJSongInfo', {songID: songID}, function(err, resp, body) {
|
|
if (err) return res.sendError(400)
|
|
return res.send(!body.startsWith("-") && body.length > 10)
|
|
})
|
|
} |