diff --git a/include/rest-web-service.php b/include/rest-web-service.php index b69161a3d869f6f90d0c2906453f3f3cef9719dd..b0ffc190795cd8c4b0d6c1cd9b7d6ff73b624c5e 100644 --- a/include/rest-web-service.php +++ b/include/rest-web-service.php @@ -102,7 +102,7 @@ Flight::route('POST ' . $WS_PREFIX . '/user', function() { }); /** - * Perform a join. + * Performs a join. */ Flight::route('POST ' . $WS_PREFIX . '/join', function() { @@ -111,7 +111,8 @@ Flight::route('POST ' . $WS_PREFIX . '/join', function() { $userHandler->joinUsers($postData['user1'], $postData['user2']); - echo "Success"; + // if the join has success, returns the remaining user id + echo $postData['user1']; }); Flight::route('GET ' . $WS_PREFIX . '/test', function() {