diff --git a/api/v1/entries/repo.php b/api/v1/entries/gitlabWebhook.php similarity index 96% rename from api/v1/entries/repo.php rename to api/v1/entries/gitlabWebhook.php index d89a0c2003..2a416234d8 100644 --- a/api/v1/entries/repo.php +++ b/api/v1/entries/gitlabWebhook.php @@ -9,7 +9,7 @@ * @version 1 * @link http://www.zentao.net */ -class repoEntry extends baseEntry +class gitlabWebhookEntry extends baseEntry { /** diff --git a/config/routes.php b/config/routes.php index aa5a7f328c..91ef47503c 100644 --- a/config/routes.php +++ b/config/routes.php @@ -89,6 +89,6 @@ $routes['/z/folders/:id'] = 'zfolder'; $routes['/z/files/:id'] = 'zfile'; $routes['/z/files/:id/content'] = 'zfileContent'; -$routes['/gitlab/webhook'] = 'repo'; +$routes['/gitlab/webhook'] = 'gitlabWebhook'; $config->routes = $routes;