In order to display the actual ILL Request data we have to retrieve it from the API and pass it to our view.
app.get('/request', (req, res) => {
res.render('display-request');
ILLRequest.add(config['institution'], app.get('accessToken').getAccessTokenString(), fields) .then(ill_request => { res.render('display-request', {request: ill_request}); }) .catch (error => { // catch the error })
There was an error while loading. Please reload this page.