Advertisement
Guest User

Untitled

a guest
Jul 21st, 2015
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     app.get("/api/*/*/kick", function(req, res) {
  2.         if (req.params[1]!==global.config.adminpassword){
  3.             res.json({error:"Invalid Admin password"})
  4.             return
  5.         }
  6.         global.streams.removeStream(req.params[0])
  7.         res.send('DJ has been kicked')
  8.     })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement