Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.get('/api/getdates', function(req, res){
- res.header("Access-Control-Allow-Origin", "*");
- res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Key");
- connection.query('SELECT * from room_reservation', function(err, rows, fields) {
- if (err) throw err;
- console.log(rows);
- res.json(rows);
- });
- connection.end();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement