Skip to content

Instantly share code, notes, and snippets.

@marcossaore
Created March 4, 2020 17:12
Show Gist options
  • Save marcossaore/83d453acfbd5cd444e4c2bbe04924462 to your computer and use it in GitHub Desktop.
Save marcossaore/83d453acfbd5cd444e4c2bbe04924462 to your computer and use it in GitHub Desktop.
const express = require("express")
const apiRouter = express.Router()
const APPLICATION = "MYAPP"
const app = express()
apiRouter.get("/healthCheck", (req, res) =>{
res.status(200).json({
message : "api is running..."
})
})
app.use('/api/v1', apiRouter)
app.listen(3000, () =>{
console.log(`LISTEN ${APPLICATION} PORT 3000`)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment