From 75a07a2389ef2958a6cafeae4958cc13ca488639 Mon Sep 17 00:00:00 2001 From: Emmanuel Date: Mon, 18 Apr 2016 10:50:02 +0200 Subject: [PATCH] Create system.js init #100 --- routes/system.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 routes/system.js diff --git a/routes/system.js b/routes/system.js new file mode 100644 index 00000000..1477f7c4 --- /dev/null +++ b/routes/system.js @@ -0,0 +1,14 @@ +var express = require('express'); +var nconf = require('nconf'); +var router = express.Router(); + +/* GET System info */ +router.get('/', function(req, res, next) { + var version = app_name; + res.type('json'); + var latest = getLastVersion(); + res.send( + {"id": version, "apiversion": 1}); +}); + +module.exports = router;