Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //express
- server.use('/api', proxy({
- target: 'http://localhost:5000',
- ws: true,
- changeOrigin: true
- })
- )
- //axios
- const leaderboard = await axios({
- method: 'GET',
- url: 'http://localhost/api/users/leaderboard'
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement