add: api restart wa

This commit is contained in:
2026-03-16 11:09:36 +07:00
parent 7122818181
commit 88ce628204
6 changed files with 127 additions and 12 deletions

View File

@@ -0,0 +1,14 @@
const express = require('express');
const router = express.Router();
const NotifikasiWaService = require('../services/notifikasi-wa.service');
router.post('/restart-wa', async (req, res) => {
try {
const result = await NotifikasiWaService.restartWhatsapp();
return res.status(200).json(result);
} catch (error) {
return res.status(500).json(error);
}
});
module.exports = router;