router.get('/', (req, res) => {
const user = await db.find(email);
return user;
});
router.get('/', (req, res) => {
const user = await db.find(email);
return user;
});
const user = await db.find(email);
return user; // Ошибка
const { ...password, email } = await db.find(emai);
return user; // Ошибки нет.
const layout = "2345234234";
const src = encodeURIComponent(layout) - не сработает
const src = 'data:image/png;base64,' + encodeURIComponent не сработает
img.src = src;
document.appendChild(img);