manage Course finished

This commit is contained in:
2024-03-18 14:51:27 +01:00
parent 92079c5a47
commit 0871d2971d
27 changed files with 22 additions and 19 deletions

View File

@ -7,8 +7,10 @@ import { restGet, restPost, restDelete, restPatch } from './restConsumer.js'
/**
* Create a new course
*/
export async function createCourse(name, credits, teacher){
return restPost("/course", {title: name, credits: credits, owner: teacher} )
export async function createCourse(name, credits, owner){
console.log(owner);
return restPost("/course", {title: name, credits: credits, owner} )
}
/**