WIP WIP
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user