Skip to content

Instantly share code, notes, and snippets.

@antoinejaussoin
Created March 30, 2018 09:27
Show Gist options
  • Save antoinejaussoin/5ac4ef357880b2d0763da5c3631c5d47 to your computer and use it in GitHub Desktop.
Save antoinejaussoin/5ac4ef357880b2d0763da5c3631c5d47 to your computer and use it in GitHub Desktop.
First endpoint
const express = require('express');
const app = express();
const port = process.env.PORT || 3001;
app.get('/api/test', (req, res) => {
res.send({ plannipoker: 'Response from server' });
});
app.listen(port, () => console.log(`Listening on port ${port}`));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment