Created
May 3, 2021 15:03
-
-
Save ujwaldhakal/f1e38477b553e759829e71ec95fa46a6 to your computer and use it in GitHub Desktop.
index.js
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 = 8080 | |
app.get('/', (req, res) => { | |
res.send('hello world') | |
}) | |
app.get('/healthcheck', (req, res) => { | |
res.send('up!') | |
}) | |
app.listen(port, () => { | |
console.log(`Example app listening at http://localhost:${port}`) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment