mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 23:00:30 +08:00
Go: remove duplicated routes (#17758)
As title. Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -153,9 +153,6 @@ func (r *Router) Setup(engine *gin.Engine) {
|
||||
// Health check
|
||||
engine.GET("/health", r.systemHandler.Health)
|
||||
|
||||
// User logout endpoint
|
||||
engine.GET("/v1/user/logout", r.userHandler.Logout)
|
||||
|
||||
apiNoAuth := engine.Group("/api/v1")
|
||||
{
|
||||
apiNoAuth.GET("/system/ping", r.systemHandler.Ping)
|
||||
@@ -643,14 +640,6 @@ func (r *Router) Setup(engine *gin.Engine) {
|
||||
connectors.POST("/:connector_id/test", r.connectorHandler.TestConnector)
|
||||
}
|
||||
|
||||
// Connector routes
|
||||
connector := authorized.Group("/v1/connector")
|
||||
{
|
||||
connector.GET("/list", r.connectorHandler.ListConnectors)
|
||||
connector.GET("/:connector_id", r.connectorHandler.GetConnector)
|
||||
connector.POST("/:connector_id/rebuild", r.connectorHandler.RebuildConnector)
|
||||
}
|
||||
|
||||
// MCP server routes.
|
||||
mcp := v1.Group("/mcp")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user