*** WIP WIP *** woks now for live and havg

This commit is contained in:
rxf
2023-03-27 09:56:18 +02:00
parent 26e4b75a6f
commit 126acfeb7f
11 changed files with 498 additions and 99 deletions
+3 -3
View File
@@ -5,8 +5,8 @@ import cookieParser from 'cookie-parser'
import cors from 'cors'
import indexRouter from './routes/index.js'
import { apiRouter } from './routes/api.js'
import chartRouter from './routes/chartapi.js'
import { apiRouter, chartapiRouter } from './routes/api.js'
// import chartRouter from './routes/chartapi.js'
const app = express()
@@ -18,7 +18,7 @@ app.use(cookieParser())
app.use('/', indexRouter)
app.use('/api', apiRouter)
app.use('/chart', chartRouter)
app.use('/chart', chartapiRouter)
// catch 404 and forward to error handler