1
0
forked from PGL/Clyde
This commit is contained in:
2024-03-17 23:19:36 +01:00
parent 7e7cec2f6c
commit 8ff29ca34e
20 changed files with 114 additions and 122 deletions

View File

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