2024-04-07 14:33:51 +02:00
|
|
|
import {restGet,restPost,restPatch} from "@/rest/restConsumer.js";
|
|
|
|
|
|
|
|
export async function getAllSchedule(){
|
|
|
|
return restGet('/schedules');
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function getOwnSchedule(){
|
|
|
|
return restGet('/schedule')
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function createSchedule(curriculum) {
|
|
|
|
return restPost('/schedule',{curriculum : curriculum})
|
|
|
|
}
|
2024-04-10 20:22:07 +02:00
|
|
|
|
|
|
|
export async function getCurriculumSchedule(id){
|
|
|
|
return restGet('/schedule/curriculum/' + id)
|
|
|
|
}
|