Struggling to test a specific endpoint in Express, but consistently encountering a 404 error.
var express = require("express")
var app = express()
//var http = require('http').Server(app)
app.get('/', function(req,res){
res.send('Endpoint working fine')
})
var port = process.env.PORT|| 8080
var localhost = 'someLocalHost.med.gov'
console.log({'localhost':localhost,
'post':port})
//
app.listen(port,localhost,function(err){
if (err){
console.log('Error occurred')
}
else {
console.log('Listening on specified port')
}
})