Fix that possibly?
This commit is contained in:
parent
b4bd93c57d
commit
616bf2f29a
1
index.js
1
index.js
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue