mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-02 22:17:10 +08:00

This commit introducess massive change: - Replace Express by Restify for simplicity and lean approach - Replace Mongoose by MongoJS for DB schema-less paradigm - Introduce `controllers` dir, and isolate all routes in `routes.js` Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
13 lines
230 B
JavaScript
13 lines
230 B
JavaScript
/**
|
|
* STATUS
|
|
*/
|
|
exports.getStatus = function(req, res, next) {
|
|
|
|
console.log("req.headers['x-auth-token'] = ", req.headers['x-auth-token']);
|
|
|
|
var stat = {"status":"running"};
|
|
res.send(stat);
|
|
|
|
return next();
|
|
}
|