From 9a9e7d61fc5d81b14e37fc471ad7e8fe555d6636 Mon Sep 17 00:00:00 2001 From: Daniel Jiang Date: Fri, 5 Jun 2020 13:16:18 +0800 Subject: [PATCH] Remove the API to test a webhook Signed-off-by: Daniel Jiang --- src/server/v2.0/route/legacy.go | 1 - 1 file changed, 1 deletion(-) diff --git a/src/server/v2.0/route/legacy.go b/src/server/v2.0/route/legacy.go index 51d20fdbd..6d41a5904 100755 --- a/src/server/v2.0/route/legacy.go +++ b/src/server/v2.0/route/legacy.go @@ -72,7 +72,6 @@ func registerLegacyRoutes() { beego.Router("/api/"+version+"/projects/:pid([0-9]+)/webhook/policies", &api.NotificationPolicyAPI{}, "get:List;post:Post") beego.Router("/api/"+version+"/projects/:pid([0-9]+)/webhook/policies/:id([0-9]+)", &api.NotificationPolicyAPI{}) - beego.Router("/api/"+version+"/projects/:pid([0-9]+)/webhook/policies/test", &api.NotificationPolicyAPI{}, "post:Test") beego.Router("/api/"+version+"/projects/:pid([0-9]+)/webhook/lasttrigger", &api.NotificationPolicyAPI{}, "get:ListGroupByEventType") beego.Router("/api/"+version+"/projects/:pid([0-9]+)/webhook/events", &api.NotificationPolicyAPI{}, "get:GetSupportedEventTypes") beego.Router("/api/"+version+"/projects/:pid([0-9]+)/webhook/jobs/", &api.NotificationJobAPI{}, "get:List")