1
0
forked from PGL/Clyde

Schedule management

This commit is contained in:
2024-04-14 13:52:09 +02:00
parent adaa828810
commit 9112004326
15 changed files with 517 additions and 32 deletions

View File

@ -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);
}