1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-09 19:29:29 +08:00
2015-07-26 23:37:22 +02:00

16 lines
444 B
JavaScript

var express = require('express');
var router = express.Router(); // get an instance of the express Router
// on routes that end in /things
// ----------------------------------------------------
router.route('/')
// get the status (accessed at GET http://localhost:8080/status)
.get(function(req, res) {
var stat = {"status":"OK"}
res.send(stat);
});
// export router module
module.exports = router;