Skip to content

Commit

Permalink
Merge pull request #1069 from Mygod/express5
Browse files Browse the repository at this point in the history
chore(deps): bump express
  • Loading branch information
TurtIeSocks authored Nov 13, 2024
2 parents fb7af9f + 185343a commit 240b293
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 98 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"discord.js": "14.15.3",
"dlv": "^1.1.3",
"dotenv": "^16.3.1",
"express": "4.21.0",
"express": "5.0.1",
"express-mysql-session": "3.0.3",
"express-rate-limit": "7.4.0",
"express-session": "1.18.0",
Expand Down
6 changes: 4 additions & 2 deletions server/src/routes/clientRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ const CLIENT_ROUTES = [
'/',
'/login',
'/blocked/:info',
'/@/:lat/:lon/:zoom?',
'/id/:category/:id/:zoom?',
'/@/:lat/:lon',
'/@/:lat/:lon/:zoom',
'/id/:category/:id',
'/id/:category/:id/:zoom',
'/304',
'/404',
'/500',
Expand Down
2 changes: 1 addition & 1 deletion server/src/routes/rootRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ rootRouter.post('/api/error/client', async (req, res) => {
}
})

rootRouter.get('/area/:area/:zoom?', (req, res) => {
rootRouter.get(['/area/:area', '/area/:area/:zoom'], (req, res) => {
const { area, zoom } = req.params
try {
const validScanAreas = config.getAreas(req, 'scanAreas')
Expand Down
Loading

0 comments on commit 240b293

Please sign in to comment.