daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Jun 22nd, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. app.get('/', (req, res) => {
  2.   let sql = 'SELECT * FROM events'
  3.   con.query(sql, (err, result) => {
  4.       // assuming there's no error
  5.       res.json(result)
  6.   })
  7. })
  8.    
  9. axios.get('http://localhost:3000')
  10.   .then((res) => {
  11.     console.log(res)
  12.   })
  13.    
  14. return new Vuex.Store({
  15.   state: {
  16.     event: event
  17.   }
  18. })
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