style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-03-13 17:45:32 +00:00
parent e78849f568
commit 400a955850
40 changed files with 321 additions and 700 deletions

View file

@ -1,15 +1,9 @@
import express from 'express';
import {
getAllLearningObjects,
getAttachment,
getLearningObject,
getLearningObjectHTML,
} from '../controllers/learning-objects.js';
import { getAllLearningObjects, getAttachment, getLearningObject, getLearningObjectHTML } from '../controllers/learning-objects.js';
import submissionRoutes from './submissions.js';
import questionRoutes from './questions.js';
const router = express.Router();
// DWENGO learning objects
@ -32,7 +26,7 @@ router.get('/:hruid', getLearningObject);
router.use('/:hruid/submissions', submissionRoutes);
router.use('/:hruid/:version/questions', questionRoutes)
router.use('/:hruid/:version/questions', questionRoutes);
// Parameter: hruid of learning object
// Query: language, version (optional)

View file

@ -1,10 +1,11 @@
import express from 'express';
import {
createQuestionHandler, deleteQuestionHandler,
createQuestionHandler,
deleteQuestionHandler,
getAllQuestionsHandler,
getQuestionAnswersHandler,
getQuestionHandler
} from "../controllers/questions.js";
getQuestionHandler,
} from '../controllers/questions.js';
const router = express.Router({ mergeParams: true });
// Query language

View file

@ -1,9 +1,7 @@
import express from 'express';
import {createSubmissionHandler, deleteSubmissionHandler, getSubmissionHandler} from '../controllers/submissions.js';
import { createSubmissionHandler, deleteSubmissionHandler, getSubmissionHandler } from '../controllers/submissions.js';
const router = express.Router({ mergeParams: true });
// Root endpoint used to search objects
router.get('/', (req, res) => {
res.json({