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 { EnvVars, getNumericEnvVar } from './util/envvars.js'; | ||||||
| 
 | 
 | ||||||
| import themeRoutes from './routes/themes.js'; | import themeRoutes from './routes/themes.js'; | ||||||
| import learningPathRoutes from './routes/learningPaths.js'; | import learningPathRoutes from './routes/learning-paths.js'; | ||||||
| import learningObjectRoutes from './routes/learningObjects.js'; | import learningObjectRoutes from './routes/learning-objects.js'; | ||||||
| 
 | 
 | ||||||
| import studentRouter from './routes/student.js'; | import studentRoutes from './routes/students.js'; | ||||||
| import groupRouter from './routes/group.js'; | import groupRoutes from './routes/groups.js'; | ||||||
| import submissionRouter from './routes/submission.js'; | import submissionRoutes from './routes/submissions.js'; | ||||||
| import classRouter from './routes/class.js'; | import classRoutes from './routes/classes.js'; | ||||||
| import questionRouter from './routes/question.js'; | import questionRoutes from './routes/questions.js'; | ||||||
| 
 | 
 | ||||||
| const app: Express = express(); | const app: Express = express(); | ||||||
| const port: string | number = getNumericEnvVar(EnvVars.Port); | const port: string | number = getNumericEnvVar(EnvVars.Port); | ||||||
|  | @ -23,11 +23,11 @@ app.get('/', (_, res: Response) => { | ||||||
|     }); |     }); | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
| app.use('/student', studentRouter); | app.use('/student', studentRoutes); | ||||||
| app.use('/group', groupRouter); | app.use('/group', groupRoutes); | ||||||
| app.use('/submission', submissionRouter); | app.use('/submission', submissionRoutes); | ||||||
| app.use('/class', classRouter); | app.use('/class', classRoutes); | ||||||
| app.use('/question', questionRouter); | app.use('/question', questionRoutes); | ||||||
| 
 | 
 | ||||||
| app.use('/theme', themeRoutes); | app.use('/theme', themeRoutes); | ||||||
| app.use('/learningPath', learningPathRoutes); | app.use('/learningPath', learningPathRoutes); | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| import { Request, Response } from 'express' | import { Request, Response } from 'express' | ||||||
| import { getAssignment } from '../services/assignments'; | 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 { | interface AssignmentParams { | ||||||
|     classid: string; |     classid: string; | ||||||
|     id: string; |     id: string; | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| import express from 'express' | import express from 'express' | ||||||
| import { getAllClassesHandler, getClassHandler, getClassStudentsHandler } from '../controllers/classes'; | import { getAllClassesHandler, getClassHandler, getClassStudentsHandler } from '../controllers/classes'; | ||||||
| import assignmentRouter from './assignment.js'; | import assignmentRouter from './assignments.js'; | ||||||
| 
 | 
 | ||||||
| const router = express.Router(); | const router = express.Router(); | ||||||
| 
 | 
 | ||||||
		Reference in a new issue
	
	 Gabriellvl
						Gabriellvl