refactor(app): add axios

This commit is contained in:
Sergey Krylov 2023-09-05 09:54:52 +03:00
parent f8072dd30b
commit fae3c7161c
2 changed files with 7 additions and 5 deletions

View File

@ -1,13 +1,15 @@
import process from 'process';
// @ts-ignore // @ts-ignore
import nodemailer from 'nodemailer'; import nodemailer from 'nodemailer';
const mailer = nodemailer.createTransport({ const mailer = nodemailer.createTransport({
auth: { auth: {
pass: 'vytjrxwzqcnmbpja', pass: process.env.EMAIL_PASSWORD,
user: 'ksv741-test@yandex.ru', user: process.env.EMAIL_LOGIN,
}, },
host: 'smtp.yandex.ru', host: process.env.EMAIL_HOST,
port: 465, port: process.env.EMAIL_PORT,
secure: true, secure: true,
}); });

View File

@ -23,7 +23,7 @@
], ],
"paths": { "paths": {
"src/*": ["./src/*"], "src/*": ["./src/*"],
"constantsasd/*": ["./src/constants/*"], "constants/*": ["./src/constants/*"],
"api/*": ["./src/api/*"], "api/*": ["./src/api/*"],
"routes/*": ["./src/api/routes*"] "routes/*": ["./src/api/routes*"]
}, },