SHARE
TWEET

Untitled

a guest Dec 15th, 2018 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //express
  2.  
  3.  server.use('/api', proxy({
  4.         target: 'http://localhost:5000',
  5.         ws: true,
  6.         changeOrigin: true
  7.         })
  8.     )
  9.  
  10. //axios
  11.  
  12. const leaderboard = await axios({
  13.         method: 'GET',
  14.         url: 'http://localhost/api/users/leaderboard'
  15.       })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top