From f1de06223156ef800fe27de9ecfa681fe05ce5a4 Mon Sep 17 00:00:00 2001 From: xiawenlong Date: Mon, 15 Nov 2021 19:27:43 +0800 Subject: [PATCH] * Fix function name. --- api/v1/entries/{repo.php => gitlabWebhook.php} | 2 +- config/routes.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename api/v1/entries/{repo.php => gitlabWebhook.php} (96%) 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;