Skip to content

Commit

Permalink
Create system.js
Browse files Browse the repository at this point in the history
init #100
  • Loading branch information
empierre committed Apr 18, 2016
1 parent 88837bb commit 75a07a2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions routes/system.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 75a07a2

Please sign in to comment.