1
0
forked from PGL/Clyde

change schedule Curriculum and own schedule

This commit is contained in:
2024-04-10 20:22:07 +02:00
parent 142ea996d8
commit 95ef4023d6
8 changed files with 142 additions and 45 deletions

View File

@ -39,13 +39,14 @@ export async function getLesson(id){
* - teacher
* - Assistants
*/
export async function getLessons(role){
if(role==="Teacher"){
return restGet("/lessons/owned")
}
export async function getLessons(){
return restGet("/lessons")
}
export async function getOwnedLessons(){
return restGet("/lessons/owned")
}
/**
* Change the options of a course