Preparation for charts moved from here to laerm app
routes/api.js - removed unnecessary table entry app.js - removed unnecessary calls actions/ddata4maps.js - return options as object sensorspecials/noise.js - removed all references to xxxxxData-Calls - removed checks for /chart/... removed route/chartapi.js, sensorspecials/noisCharts.js and utilites/tables.js
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import express from 'express'
|
||||
|
||||
import {getData4map} from "../actions/data4map.js"
|
||||
import * as tables from "../utilities/tables.js"
|
||||
import * as ERR from "../utilities/errortexts.js"
|
||||
import * as getData from "../actions/getsensorData.js";
|
||||
import * as getProps from "../actions/getproperties.js";
|
||||
@@ -46,10 +45,3 @@ apiRouter.get('/:cmd', async (req, res) => {
|
||||
params.chart = false
|
||||
await dispatchCommand(req.params.cmd, cmdTable, params, res)
|
||||
})
|
||||
|
||||
// normal routes called from javascript client
|
||||
chartapiRouter.get('/:cmd', async (req, res) => {
|
||||
const params = req.query
|
||||
params.chart = true
|
||||
await dispatchCommand(req.params.cmd, cmdTable, params, res)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user