Skip to content

Commit

Permalink
BC-6257 - fix SHD using wrong URLs (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
bergatco authored Jan 16, 2024
1 parent eecfe1e commit 219ddd0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions controllers/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,18 +468,18 @@ if(LTI_VERSION === 'v3') {
} else {
router.get('/search', showTools);

router.patch('/:id', getUpdateHandler('ltitools'));
router.get('/:id', getDetailHandler('ltitools'));
router.delete('/:id', getDeleteHandler('ltitools'));
router.post('/', getCreateHandler('ltitools'));
router.patch('/:id', getUpdateHandler('ltiTools'));
router.get('/:id', getDetailHandler('ltiTools'));
router.delete('/:id', getDeleteHandler('ltiTools'));
router.post('/', getCreateHandler('ltiTools'));
router.all('/', showTools);

router.get('/', function (req, res, next) {
api(req).get('/ltiTools/').then(ltitools => {
api(req).get('/ltiTools/').then(ltiTools => {
res.render('tools/tools', {
title: 'Tools',
user: res.locals.currentUser,
tools: ltitools.data,
tools: ltiTools.data,
themeTitle: process.env.SC_NAV_TITLE || 'Schul-Cloud'
});
});
Expand Down

0 comments on commit 219ddd0

Please sign in to comment.