Add new fetch.js route

main
sudoer777 2022-03-07 12:01:58 -07:00
parent 3c274c995a
commit 0402209290
1 changed files with 2 additions and 0 deletions

2
app.js
View File

@ -15,6 +15,7 @@ var dataRouter = require('./routes/data');
var manageRouter = require('./routes/manage');
var authRouter = require('./routes/auth');
var aboutRouter = require('./routes/about');
var fetchRouter = require('./routes/fetch');
var app = express();
@ -53,6 +54,7 @@ app.use('/data', dataRouter);
app.use('/manage', manageRouter);
app.use('/auth', authRouter);
app.use('/about', aboutRouter);
app.use('/fetch', fetchRouter);
// catch 404 and forward to error handler