-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[Backend] Type routes/feedback"
This reverts commit d8dcf16.
- Loading branch information
1 parent
1118d2b
commit 6f8b613
Showing
6 changed files
with
26 additions
and
50 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const router = require('express').Router() | ||
|
||
const { sendFeedbackToToska } = require('../services/mailService') | ||
const logger = require('../util/logger') | ||
|
||
router.post('/email', async req => { | ||
const { | ||
body: { content }, | ||
user, | ||
} = req | ||
|
||
await sendFeedbackToToska({ | ||
feedbackContent: content, | ||
user, | ||
}) | ||
|
||
logger.info(`${user.userId} succesfully sent feedback to toska`) | ||
}) | ||
|
||
module.exports = router |
This file was deleted.
Oops, something went wrong.
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
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
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
This file was deleted.
Oops, something went wrong.