yasd/apps/server/api/debug/routes.js
2022-04-08 14:19:00 -04:00

20 lines
414 B
JavaScript

const express = require('express');
const router = express.Router();
router.get('/', (req, res) => {
res.status(200).send("Debug");
});
router.get('/showconfig', (req, res)=>{
res.status(200).send('CONFIG DATA');
});
router.post('/clearscreen', (req, res)=>{
res.sendStatus(200);
});
router.post('/resetconfig', (req, res)=> {
res.status(200).send('CONFIG RESET');
});
module.exports = router;