Created
March 4, 2020 17:12
-
-
Save marcossaore/83d453acfbd5cd444e4c2bbe04924462 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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