Refactoring

This commit is contained in:
Rampeur
2025-08-15 20:32:33 +02:00
parent 25a09aa0fe
commit f211bc4b5b
6 changed files with 0 additions and 47 deletions
-1
View File
@@ -97,7 +97,6 @@ router.get('/authenticate', function (req, res, next) {
})(req, res, next);
});
router.post('/users', function (req, res, next) {
console.log('ici post users');
let user = new User();
if (typeof req.body.user.username !== 'undefined') {
user.username = req.body.user.username;
-1
View File
@@ -63,7 +63,6 @@ const utils = {
if (response.status >= 200 && response.status < 400) {
console.log(`${utils.getDateTimeISOString()}`, chalk.green(`Réception des sauts via SkydiverId API`), `${response.status} ${response.statusText}`);
const data = response.json();
console.log(data);
return data;
} else {
console.log(`${utils.getDateTimeISOString()}`, chalk.red(`Erreur ${response.status} ${response.statusText}`));