https://github.com/opentable/hapi-deployment-info
plugin for the deployment-info endpoint
https://github.com/opentable/hapi-deployment-info
Last synced: 3 months ago
JSON representation
plugin for the deployment-info endpoint
- Host: GitHub
- URL: https://github.com/opentable/hapi-deployment-info
- Owner: opentable
- License: mit
- Created: 2014-07-18T11:47:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-21T15:15:48.000Z (almost 11 years ago)
- Last Synced: 2025-03-01T15:16:58.683Z (4 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 20
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#Hapi deployment-info
[](https://travis-ci.org/opentable/hapi-deployment-info) [](http://badge.fury.io/js/hapi-deployment-info) Shared code for the `deployment-info` endpoint.
Returns deployment-info (specified in config).
Installation:
```npm install --save hapi-deployment-info```
Usage:
```
var server = hapi.createServer();server.pack.require("hapi-deployment-info",
// data to return
{
lastCommitSha: "df45100b52f68d6b8152a10e5200c5853b5202ed",
lastCommitTimestamp: "2014-07-17T08:42:00Z"
},
function (err){
if(err){
throw err;
}
}
);
```Routes:
- `/deployment-info` // returns the deployment info in the config
- `/server` // gives the server hostname