change schedule Curriculum and own schedule
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user