fix: voeg .js toe submission
This commit is contained in:
		
							parent
							
								
									e8975878aa
								
							
						
					
					
						commit
						3e2c73320b
					
				
					 4 changed files with 16 additions and 16 deletions
				
			
		|  | @ -1,6 +1,6 @@ | ||||||
| import { Request, Response } from "express"; | import { Request, Response } from "express"; | ||||||
| import { getSubmission } from "../services/submissions"; | import { getSubmission } from "../services/submissions.js"; | ||||||
| import { Language, languageMap } from "../entities/content/language"; | import { Language, languageMap } from "../entities/content/language.js"; | ||||||
| 
 | 
 | ||||||
| interface SubmissionParams { | interface SubmissionParams { | ||||||
|     lohruid: string, |     lohruid: string, | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| import { Submission } from "../entities/assignments/submission.entity"; | import { Submission } from "../entities/assignments/submission.entity.js"; | ||||||
| import { Language } from "../entities/content/language"; | import { Language } from "../entities/content/language.js"; | ||||||
| import { GroupDTO, mapToGroupDTO } from "./group"; | import { GroupDTO, mapToGroupDTO } from "./group.js"; | ||||||
| import { mapToStudentDTO, StudentDTO } from "./student"; | import { mapToStudentDTO, StudentDTO } from "./student.js"; | ||||||
| 
 | 
 | ||||||
| export interface SubmissionDTO { | export interface SubmissionDTO { | ||||||
|     learningObjectHruid: string, |     learningObjectHruid: string, | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| import express from 'express'; | import express from 'express'; | ||||||
| import { getSubmissionHandler } from '../controllers/submissions'; | import { getSubmissionHandler } from '../controllers/submissions.js'; | ||||||
| const router = express.Router({ mergeParams: true }); | const router = express.Router({ mergeParams: true }); | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| import { getSubmissionRepository } from "../data/repositories"; | import { getSubmissionRepository } from "../data/repositories.js"; | ||||||
| import { Language } from "../entities/content/language"; | import { Language } from "../entities/content/language.js"; | ||||||
| import { LearningObjectIdentifier } from "../entities/content/learning-object-identifier"; | import { LearningObjectIdentifier } from "../entities/content/learning-object-identifier.js"; | ||||||
| import { mapToSubmissionDTO, SubmissionDTO } from "../interfaces/submission"; | import { mapToSubmissionDTO, SubmissionDTO } from "../interfaces/submission.js"; | ||||||
| 
 | 
 | ||||||
| export async function getSubmission( | export async function getSubmission( | ||||||
|     learningObjectHruid: string, |     learningObjectHruid: string, | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Gabriellvl
						Gabriellvl