This file contains hidden or 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 lti = require('ltijs').Provider | |
| /** | |
| * sendGrade | |
| */ | |
| lti.app.post('/grade', async (req, res) => { | |
| try { | |
| const idtoken = res.locals.token // IdToken | |
| const score = req.body.grade // User numeric score sent in the body | |
| // Creating Grade object |