fix(backend): close app.post('/api/subdomains') curly braces to fix SyntaxError
This commit is contained in:
@@ -127,6 +127,8 @@ app.post('/api/subdomains', async (req, res) => {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
res.status(500).json({ error: err.message });
|
res.status(500).json({ error: err.message });
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Excluir Subdomínio (Hostinger + Banco)
|
// Excluir Subdomínio (Hostinger + Banco)
|
||||||
app.delete('/api/subdomains/:id', async (req, res) => {
|
app.delete('/api/subdomains/:id', async (req, res) => {
|
||||||
if (!HOSTINGER_API_KEY) return res.status(400).json({ error: 'API key não configurada' });
|
if (!HOSTINGER_API_KEY) return res.status(400).json({ error: 'API key não configurada' });
|
||||||
|
|||||||
Reference in New Issue
Block a user