fix: consistente naamgeving
This commit is contained in:
		
							parent
							
								
									037763a810
								
							
						
					
					
						commit
						3b71c80be6
					
				
					 11 changed files with 17 additions and 17 deletions
				
			
		|  | @ -3,14 +3,14 @@ import { initORM } from './orm.js'; | |||
| import { EnvVars, getNumericEnvVar } from './util/envvars.js'; | ||||
| 
 | ||||
| import themeRoutes from './routes/themes.js'; | ||||
| import learningPathRoutes from './routes/learningPaths.js'; | ||||
| import learningObjectRoutes from './routes/learningObjects.js'; | ||||
| import learningPathRoutes from './routes/learning-paths.js'; | ||||
| import learningObjectRoutes from './routes/learning-objects.js'; | ||||
| 
 | ||||
| import studentRouter from './routes/student.js'; | ||||
| import groupRouter from './routes/group.js'; | ||||
| import submissionRouter from './routes/submission.js'; | ||||
| import classRouter from './routes/class.js'; | ||||
| import questionRouter from './routes/question.js'; | ||||
| import studentRoutes from './routes/students.js'; | ||||
| import groupRoutes from './routes/groups.js'; | ||||
| import submissionRoutes from './routes/submissions.js'; | ||||
| import classRoutes from './routes/classes.js'; | ||||
| import questionRoutes from './routes/questions.js'; | ||||
| 
 | ||||
| const app: Express = express(); | ||||
| const port: string | number = getNumericEnvVar(EnvVars.Port); | ||||
|  | @ -23,11 +23,11 @@ app.get('/', (_, res: Response) => { | |||
|     }); | ||||
| }); | ||||
| 
 | ||||
| app.use('/student', studentRouter); | ||||
| app.use('/group', groupRouter); | ||||
| app.use('/submission', submissionRouter); | ||||
| app.use('/class', classRouter); | ||||
| app.use('/question', questionRouter); | ||||
| app.use('/student', studentRoutes); | ||||
| app.use('/group', groupRoutes); | ||||
| app.use('/submission', submissionRoutes); | ||||
| app.use('/class', classRoutes); | ||||
| app.use('/question', questionRoutes); | ||||
| 
 | ||||
| app.use('/theme', themeRoutes); | ||||
| app.use('/learningPath', learningPathRoutes); | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| import { Request, Response } from 'express' | ||||
| import { getAssignment } from '../services/assignments'; | ||||
| 
 | ||||
| // typescript is annoywith with parameter forwarding from class.ts
 | ||||
| // typescript is annoywith with parameter forwarding from classes.ts
 | ||||
| interface AssignmentParams { | ||||
|     classid: string; | ||||
|     id: string; | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| import express from 'express' | ||||
| import { getAllClassesHandler, getClassHandler, getClassStudentsHandler } from '../controllers/classes'; | ||||
| import assignmentRouter from './assignment.js'; | ||||
| import assignmentRouter from './assignments.js'; | ||||
| 
 | ||||
| const router = express.Router(); | ||||
| 
 | ||||
		Reference in a new issue
	
	 Gabriellvl
						Gabriellvl