diff --git a/api/v1/submissions/index.php b/api/v1/submissions/index.php index 3e28785eee9..19dd0ff6e5a 100644 --- a/api/v1/submissions/index.php +++ b/api/v1/submissions/index.php @@ -16,12 +16,19 @@ * @brief Handle requests for submission API functions. * */ + $urlParts = explode('/', trim($_SERVER['PATH_INFO'], '/')); if (count($urlParts) >= 6 && $urlParts[5] == 'files') { return new \PKP\handler\APIHandler(new \PKP\API\v1\submissions\PKPSubmissionFileController()); -} elseif (in_array('jats', $urlParts)) { +} + +if (in_array('jats', $urlParts)) { return new \PKP\handler\APIHandler(new \PKP\API\v1\jats\PKPJatsController()); -} else { - return new \PKP\handler\APIHandler(new \APP\API\v1\submissions\SubmissionController()); } + +if (in_array('suggestions', $urlParts)) { + return new \PKP\handler\APIHandler(new PKP\API\v1\reviewers\suggestions\ReviewerSuggestionController()); +} + +return new \PKP\handler\APIHandler(new \APP\API\v1\submissions\SubmissionController()); diff --git a/classes/migration/upgrade/v3_6_0/I4787_ReviewSuggestions.php b/classes/migration/upgrade/v3_6_0/I4787_ReviewSuggestions.php new file mode 100644 index 00000000000..2dcacb65fa9 --- /dev/null +++ b/classes/migration/upgrade/v3_6_0/I4787_ReviewSuggestions.php @@ -0,0 +1,23 @@ +