Skip to content
Snippets Groups Projects

Translations

Merged Mona-Lisa Kulmala requested to merge translations into staging
1 file
+ 0
21
Compare changes
  • Side-by-side
  • Inline
@@ -29,25 +29,4 @@ router.put('/:id', async (req, res) => {
}
})
//router.put('/:id', async (req, res) => {
// const user = req.user
// if (user && user.admin) {
// const { id, number, text } = req.body
// const question = await Question.findByPk(id)
// if (question) {
// if (number === 1) {
// question.hint_1 = text
// } else {
// question.hint_2 = text
// }
// await question.save()
// res.json(question)
// } else {
// res.status(404).end()
// }
// } else {
// res.status(403).end()
// }
//})
module.exports = router
Loading