Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cc374-ual authored Jun 18, 2024
1 parent dd4ea5c commit 8cf0077
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ app.get('/', (req, res) => {
res.json(textNormal);
});

app.post('/guardar-cambios-regla', (req,res) => {
app.post('/guardarCambiosRegla', (req,res) => {
try{
console.log(req.body.textoRegla);
let contenidoReglas = fs.readFileSync("/var/lib/suricata/rules/local.rules", 'utf8');
Expand Down Expand Up @@ -64,7 +64,7 @@ try{
});


app.post('/guardar-cambiosConfigGeneral', (req,res) => {
app.post('/guardarCambiosConfigGeneral', (req,res) => {
try{
console.log(req.body);
const valoresActualizados = req.body;
Expand Down Expand Up @@ -113,7 +113,7 @@ app.post('/guardar-cambiosConfigGeneral', (req,res) => {
});


app.post('/guardar-cambios', (req, res) => {
app.post('/guardarCambios', (req, res) => {
try {
console.log(req.body);
const valoresActualizados = req.body;
Expand Down Expand Up @@ -297,7 +297,7 @@ app.get('/puertoDestinoMasAlertas', (req, res) => {
});


app.get('/estado-contenedores',(req,res) => {
app.get('/estadoContenedores',(req,res) => {

exec('docker ps -a --format "{{.Status}}|{{.Names}}|{{.Ports}}"', (error, stdout) => {
if (error) {
Expand All @@ -323,7 +323,7 @@ app.get('/estado-contenedores',(req,res) => {
});
});

app.post('/actualizar-estado',(req,res)=>{
app.post('/actualizarEstado',(req,res)=>{
console.log(req.body);
const nombreContenedor = req.body.nombre;
const indicador = req.body.indicador;
Expand Down

0 comments on commit 8cf0077

Please sign in to comment.