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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user