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:
rxf
2023-04-07 15:28:42 +02:00
parent 492aa1c3f3
commit c3a4ff0b4a
7 changed files with 28 additions and 614 deletions
-8
View File
@@ -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)
})