Se agregó el módulo para mandar emails masivos
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { ExcelService } from './excel.service';
|
||||
|
||||
@Controller('excel')
|
||||
export class ExcelController {
|
||||
constructor(private readonly excelService: ExcelService) {}
|
||||
|
||||
@Get('read-emails')
|
||||
async getEmails() {
|
||||
const filePath = './src/excel_Usuarios/usuarios_fake.xlsx';
|
||||
const emails = this.excelService.readEmailsFromExcel(filePath);
|
||||
return { emails };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user