Fix that possibly?

This commit is contained in:
Christopher Cookman 2025-10-03 22:10:23 -06:00
parent b4bd93c57d
commit 616bf2f29a

View file

@ -592,6 +592,7 @@ app.put('/api/v1/user/route', (req, res) => { // Update route
app.patch('/api/v1/user/update', async (req, res) => { // Update users server, port, auth, or secret via API key instead of session. Used for automated scripts
const apiKey = req.headers['authorization'];
console.log(`API Key: ${apiKey}`);
if (!apiKey) {
res.status(401).json({ error: 'Unauthorized' });
return;