Skip to content

Commit

Permalink
fixed device json download info
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Nov 22, 2024
1 parent bb4489b commit 30d5aa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routes/downloads.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ router.get('/json/:device', async function (req, res, next) {
try {
const device = req.params.device;

const devices = ['gloves', 'orbit', 'handle', 'chromadeck', 'duo', 'desktop']; // Example devices
if (!devices.includes(device)) {
return res.status(404).json({ error: 'Device not found' });
}
Expand Down

0 comments on commit 30d5aa7

Please sign in to comment.