- asggiunto bottone "installa app" sulla email di conferma registrazione e anche la Guida "/guida".

- migliorato InvitaAmico
This commit is contained in:
Surya Paolo
2025-11-19 11:39:42 +01:00
parent 657dc79996
commit aa877dea0a
8 changed files with 79 additions and 18 deletions

View File

@@ -98,11 +98,12 @@ function logResponse(req, res, data) {
const emoji = statusCode >= 200 && statusCode < 300 ? '✅' : statusCode >= 400 && statusCode < 500 ? '⚠️' : '❌';
console.log(
`${emoji} [${method}] ${url} | Status: ${statusCode} | User: ${userId} | Data: ${
data ? JSON.stringify(data).substring(0, 100) : 'empty'
}`
);
if (statusCode !== 200) {
console.log(
`${emoji} [${method}] ${url} | Status: ${statusCode} | User: ${userId} | Data: ${data ? JSON.stringify(data).substring(0, 100) : 'empty'
}`
);
}
}
const authenticate = (req, res, next) => authenticateMiddleware(req, res, next);