feat: get teachers van class
This commit is contained in:
		
							parent
							
								
									29824c549e
								
							
						
					
					
						commit
						db3c531038
					
				
					 2 changed files with 8 additions and 1 deletions
				
			
		|  | @ -3,7 +3,7 @@ import { | |||
|     createClassHandler, | ||||
|     getAllClassesHandler, | ||||
|     getClassHandler, | ||||
|     getClassStudentsHandler, | ||||
|     getClassStudentsHandler, getClassTeachersHandler, | ||||
|     getTeacherInvitationsHandler, | ||||
| } from '../controllers/classes.js'; | ||||
| import assignmentRouter from './assignments.js'; | ||||
|  | @ -22,6 +22,8 @@ router.get('/:id/teacher-invitations', getTeacherInvitationsHandler); | |||
| 
 | ||||
| router.get('/:id/students', getClassStudentsHandler); | ||||
| 
 | ||||
| router.get('/:id/teachers', getClassTeachersHandler); | ||||
| 
 | ||||
| router.use('/:classid/assignments', assignmentRouter); | ||||
| 
 | ||||
| export default router; | ||||
|  |  | |||
		Reference in a new issue
	
	 Gabriellvl
						Gabriellvl