Skip to content

ElectricWizardry/say-hi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

say-hi

Express middleware to say hi and monitor uptime.

Usage

var app = require('express')()
app.use(require('say-hi')('example'))
app.listen(process.env.PORT || 3000)

Request

GET /status HTTP/1.1
Accept: application/json
Host: example.com

Response

HTTP/1.1 200 OK
Content-Type: application/json
{
  "status": "hi from example",
  "uptime": 12345
}

License

MIT