Guest User

Untitled

a guest
Nov 15th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import cors from 'cors';
  2. import express from 'express';
  3. const app = express();
  4.  
  5. app.use(cors());
  6. app.get('/', (req, res) => res.send({ hello: 'world' }));
  7.  
  8. app.listen(3000, () => console.log('Example app listening on port 3000!'));
Add Comment
Please, Sign In to add comment