Skip to content
Snippets Groups Projects
Commit 4a95669b authored by V S Tharunika's avatar V S Tharunika
Browse files

adding components into app.js to check server connectivty

parent 39cfb95c
No related branches found
No related tags found
No related merge requests found
const express = require('express')
const bodyParser = require('body-parser')
const cors = require('cors')
const morgan = require('morgan')
const app = express()
app.use(morgan('combine'))
app.use(bodyParser.json())
app.use(cors())
app.get('/status',(req, res) =>{
res.send({
message: 'hello world!'
})
})
app.listen(process.env.PORT || 8081)
console.log('hello')
console.log("welcome!!")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment