UNPKG

nightscout

Version:

Nightscout acts as a web-based CGM (Continuous Glucose Monitor) to allow multiple caregivers to remotely view a patients glucose data in realtime.

20 lines (14 loc) 409 B
'use strict'; function configure (app, wares, ctx) { var express = require('express'), api = express.Router( ) ; if (app.enabled('api')) { api.use(wares.sendJSONStatus); api.get('/test', ctx.authorization.isPermitted('authorization:debug:test'), function (req, res) { return res.json({status: 'ok'}); }); } return api; } module.exports = configure;