From 22a8b8be5cedd5ccd549152fc1a4ef4ae6426271 Mon Sep 17 00:00:00 2001 From: Sam Artioli Date: Mon, 20 Mar 2017 13:51:22 -0400 Subject: [PATCH] initial --- README.md | 0 index.js | 13 +++++++++++++ package.json | 8 ++++++++ 3 files changed, 21 insertions(+) create mode 100644 README.md create mode 100644 index.js create mode 100644 package.json diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/index.js b/index.js new file mode 100644 index 0000000..cbc8c85 --- /dev/null +++ b/index.js @@ -0,0 +1,13 @@ +/* eslint-disable new-cap */ +'use strict'; +var express = require('express'); +var router = express.Router(); + +router.route('/_health') + .get(healthCheck); + +module.exports = router; + +function healthCheck(req, res, next) { + res.send('I think therefore I am'); +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..db63b40 --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "name": "health-check", + "version": "1.0.0", + "main": "index.js", + "repository": "https://github.com/abeai/health-check", + "author": "Abe.ai", + "license": "MIT" +}