Added res/req to app.js and fixed naming bug in botcontroller

This commit is contained in:
Logan Cusano
2023-03-26 15:45:54 -04:00
parent 988683ab72
commit ccb42e7fba
2 changed files with 6 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ app.use('/', indexRouter);
// Discord bot control route
app.use('/bot', (res, req, next) => {
req.discordClient = discordClient; // Add the discord client to bot requests to be used downstream
next()
next(res, req);
}, botRouter);
// Local client control route