feat[go]: add router for connectors/<connector_id> PATCH (#16358)

### What problem does this PR solve?

As title

/api/v1/connectors/<connector_id> PATCH was implemented in #15512

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [x] Refactoring
This commit is contained in:
Haruko386
2026-06-25 19:07:52 +08:00
committed by GitHub
parent 74597b8683
commit 43b96223b4

View File

@@ -523,6 +523,7 @@ func (r *Router) Setup(engine *gin.Engine) {
connector.POST("/google/oauth/web/start", r.connectorHandler.StartGoogleWebOAuth)
connector.POST("/google/oauth/web/result", r.connectorHandler.PollGoogleWebOAuthResult)
connector.GET("/:connector_id", r.connectorHandler.GetConnector)
connector.PATCH("/:connector_id", r.connectorHandler.UpdateConnector)
connector.GET("/:connector_id/logs", r.connectorHandler.ListLogs)
connector.DELETE("/:connector_id", r.connectorHandler.DeleteConnector)
connector.POST("/:connector_id/rebuild", r.connectorHandler.RebuildConnector)