Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created November 18, 2021 13:08
Show Gist options
  • Select an option

  • Save codecademydev/d0215650eeccd45c2a0c153fb96a9b02 to your computer and use it in GitHub Desktop.

Select an option

Save codecademydev/d0215650eeccd45c2a0c153fb96a9b02 to your computer and use it in GitHub Desktop.
Codecademy export
const express = require('express');
const app = express();
const PORT = process.env.PORT || 4001;
const sausageTypes = ['bratwurst', 'andouille', 'chorizo', 'boudin', 'kielbasa'];
app.get('/sausages', (req, res, next) => {
res.send(sausageTypes);
})
app.listen(PORT, () => {
console.log(`Server is listening on port ${PORT}`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment