Prepare charts moved from api server to here

route/api.js
   - new distriputer fpr chart preparation

appp.js
   - removed unnecessary calls

public/javascripts/map.js
   - changed /char/... call to /api/... call

charts/preparecharts
   - added

charts/utilities.js
   - added

public/javascripts/showcharts.js
   - changed /char/... call to /api/... call

routes/users.js
   - deleted
This commit is contained in:
rxf
2023-04-07 15:23:16 +02:00
parent cba929dac4
commit 22a6b9ab2c
7 changed files with 706 additions and 18 deletions
-5
View File
@@ -13,10 +13,6 @@ const __dirname = path.dirname(__filename);
import indexRouter from './routes/index.js'
import apiRouter from './routes/api.js'
import chartRouter from './routes/api.js'
// import getdataRouter from './routes/getdata.js'
// import putdataRouter from './routes/putdata.js'
// view engine setup
app.set('views', path.join(__dirname, 'views'));
@@ -30,7 +26,6 @@ app.use(express.static(path.join(__dirname, 'public')));
app.use('/api', apiRouter)
app.use('/', indexRouter);
app.use('/chart', chartRouter);
// catch 404 and forward to error handler
app.use(function(req, res, next) {