Fix patch

This commit is contained in:
Christopher Cookman 2024-11-15 12:10:41 -07:00
parent 1461221e57
commit 656700d1a2

View file

@ -116,7 +116,7 @@ app.post('/shorten', (req, res) => { // Shorten URL
});
});
app.patch('/:shortUrl', (req, req) => {
app.patch('/:shortUrl', (req, res) => {
if (req.body.passcode !== passcode) {
return res.status(403).json({ error: 'Invalid passcode' });
}