Schedule management
This commit is contained in:
@ -3,8 +3,8 @@ import {restGet,restPatch,restPost,restDelete} from "@/rest/restConsumer.js";
|
||||
/**
|
||||
* Create a new lesson
|
||||
*/
|
||||
export async function createLesson(course, start, end, color, local){
|
||||
return restPost("/lesson", {course: course , start: start, end: end, color : color , local : local} )
|
||||
export async function createLesson(course, lessonStart, lessonEnd, lessonType, color, local){
|
||||
return restPost("/lesson", {course: course , lessonStart: lessonStart, lessonEnd: lessonEnd,lessonType:lessonType ,color : color , local : local} )
|
||||
}
|
||||
|
||||
/**
|
||||
@ -62,5 +62,5 @@ export async function getOwnedLessons(){
|
||||
* - assistants: should be a list and will replace all assistants
|
||||
*/
|
||||
export async function alterLesson(id, changes){
|
||||
return restPatch("/course/" + id, changes);
|
||||
return restPatch("/lesson/" + id, changes);
|
||||
}
|
||||
|
Reference in New Issue
Block a user