mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
23 lines
585 B
JavaScript
23 lines
585 B
JavaScript
'use strict';
|
|
|
|
function create (env, ctx, apiv1) {
|
|
var express = require('express')
|
|
, app = express( )
|
|
;
|
|
|
|
const ddata = require('../data/endpoints')(env, ctx);
|
|
const notificationsV2 = require('./notifications-v2')(app, ctx);
|
|
const summary = require('./summary')(env, ctx);
|
|
|
|
app.use('/', apiv1);
|
|
app.use('/properties', ctx.properties);
|
|
app.use('/authorization', ctx.authorization.endpoints);
|
|
app.use('/ddata', ddata);
|
|
app.use('/notifications', notificationsV2);
|
|
app.use('/summary', summary);
|
|
|
|
return app;
|
|
}
|
|
|
|
module.exports = create;
|