resman gut bevor DNS gefixt ist
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user