Created
March 30, 2018 09:27
-
-
Save antoinejaussoin/5ac4ef357880b2d0763da5c3631c5d47 to your computer and use it in GitHub Desktop.
First endpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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