This commit is contained in:
rxf
2023-03-25 19:43:26 +01:00
parent d10b274fe0
commit 9acf053b18
4 changed files with 48 additions and 41 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ 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'
@@ -29,7 +30,7 @@ app.use(express.static(path.join(__dirname, 'public')));
app.use('/api', apiRouter)
app.use('/', indexRouter);
// app.use('/users', usersRouter);
app.use('/chart', chartRouter);
// catch 404 and forward to error handler
app.use(function(req, res, next) {