add openhack files

This commit is contained in:
Ryan Peters
2022-11-03 16:41:13 -04:00
commit b2c9f7e29f
920 changed files with 118861 additions and 0 deletions

View File

@ -0,0 +1,20 @@
'use strict';
/**
* Operations on /version/user
*/
module.exports = {
/**
* summary:
* description: Returns healthcheck for systems looking to ensure API is up and operational
* parameters:
* produces:
* responses: 200, default
*/
get: function (req, res, next) {
let status = 200;
let version = process.env.APP_VERSION;
res.set('Content-Type', 'text/plain');
res.status(status).send(version);
}
};