Merge branch 'develop' of gitlab.com:surya89/freeplanet_serverside into develop

This commit is contained in:
Surya Paolo
2023-10-03 00:44:24 +02:00
2 changed files with 41 additions and 2 deletions

View File

@@ -25,14 +25,14 @@ const _ = require('lodash');
const reg = require('../reg/registration');
const { authenticate, authenticate_noerror } = require('../middleware/authenticate');
const { authenticate, authenticate_noerror, authenticate_noerror } = require('../middleware/authenticate');
const TypedError = require('../modules/ErrorHandler');
const globalTables = require('../tools/globalTables');
const mongoose = require('mongoose').set('debug', false);
router.post('/cmd', authenticate_noerror, async (req, res) => {
router.post('/cmd', authenticate_noerror_noerror, async (req, res) => {
const mydata = req.body.mydata;
const idapp = req.body.idapp;