mod_status
Version:
mod_status for Node
19 lines (14 loc) • 407 B
JavaScript
/*
* Copyright (c) 2013, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
var express = require('express'),
status = require('../lib/index.js');
var app = express();
app.use(status({
url: '/status',
text: 'This process looks ok'
}));
console.log('Go to: http://127.0.0.1:8000/status');
app.listen(8000);