Skip to content

Instantly share code, notes, and snippets.

@fire-cracker
Created February 11, 2020 10:27
Show Gist options
  • Save fire-cracker/7ec86cded7634abc8b10f9c866ebd702 to your computer and use it in GitHub Desktop.
Save fire-cracker/7ec86cded7634abc8b10f9c866ebd702 to your computer and use it in GitHub Desktop.
import express from 'express';
let app = express();
app.get('/users', (req, res, next) => {
res.send(["Tony","Lisa","Michael","Ginger","Food"])
})
app.listen(3000, () => {
console.log('Server running on 3000');
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment