resman gut bevor DNS gefixt ist

This commit is contained in:
ecki
2026-03-10 14:46:47 +01:00
parent 9d519701a8
commit 1791070dd6
4 changed files with 444 additions and 4 deletions
+3 -2
View File
@@ -52,13 +52,15 @@ router.get('/:id', async (req, res) => {
// CREATE DOMAIN
router.post('/', async (req, res) => {
try {
const { domain_name, provider, ip_address, yearly_cost, notes } = req.body;
await pool.query(
const [result] = await pool.query(
`INSERT INTO domains
(domain_name, provider, ip_address, yearly_cost, notes)
VALUES (?, ?, ?, ?, ?)`,
@@ -101,7 +103,6 @@ details: err.sqlMessage
});
// UPDATE DOMAIN
router.put('/:id', async (req, res) => {
try {