Created
May 4, 2020 09:54
-
-
Save Aschen/c97c21638472529a2f9d0ba3a7553a89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const app = express(); | |
const log = message => console.log(message); | |
const emailService = new EmailService(logger); | |
app.get('/', (request, response) => { | |
const requestId = uuid(); | |
log(`[${requestId}] Start processing`); | |
await emailService.notify(request.body.emails, requestId); | |
response.writeHead(200); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment