add: api restart wa
This commit is contained in:
14
routes/notifikasi-wa.route.js
Normal file
14
routes/notifikasi-wa.route.js
Normal 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;
|
||||
Reference in New Issue
Block a user