Skip to content

Commit d7c5536

Browse files
committed
Rename methods saveNewCourse() and saveNewUser() to addCourse() and addUser() in restApi - refs #2149
1 parent b00352a commit d7c5536

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/webservices/api/v2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@
119119
$restApi->showLearningPath($lpId);
120120
break;
121121
case Rest::SAVE_COURSE:
122-
$data = $restApi->saveNewCourse($_POST);
122+
$data = $restApi->addCourse($_POST);
123123
$restResponse->setData($data);
124124
break;
125125
case Rest::SAVE_USER:
126-
$data = $restApi->saveNewUser($_POST);
126+
$data = $restApi->addUser($_POST);
127127
$restResponse->setData($data);
128128
break;
129129
case Rest::SUBSCRIBE_USER_TO_COURSE:

0 commit comments

Comments
 (0)