Fixing small bugs
- Extra imports - incorrect param placement
This commit is contained in:
@@ -52,7 +52,7 @@ app.use(express.static(path.join(__dirname, 'public')));
|
||||
app.use('/', indexRouter);
|
||||
|
||||
// Discord bot control route
|
||||
app.use('/bot', (res, req, next) => {
|
||||
app.use('/bot', (req, res, next) => {
|
||||
req.discordClient = discordClient; // Add the discord client to bot requests to be used downstream
|
||||
next();
|
||||
}, botRouter);
|
||||
|
||||
Reference in New Issue
Block a user