mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 15:20:30 +08:00
Go CLI: refactor (#16355)
This commit is contained in:
@@ -83,6 +83,9 @@ func (r *Router) Setup(engine *gin.Engine) {
|
||||
|
||||
// Configs
|
||||
protected.GET("/configs", r.handler.ListConfigs)
|
||||
// Log level
|
||||
protected.GET("/config/log", r.handler.GetLogLevel)
|
||||
protected.PUT("/config/log", r.handler.SetLogLevel)
|
||||
|
||||
// Environments
|
||||
protected.GET("/environments", r.handler.ListEnvironments)
|
||||
@@ -90,10 +93,6 @@ func (r *Router) Setup(engine *gin.Engine) {
|
||||
// Version
|
||||
protected.GET("/version", r.handler.GetVersion)
|
||||
|
||||
// Log level
|
||||
protected.GET("/log_level", r.handler.GetLogLevel)
|
||||
protected.PUT("/log_level", r.handler.SetLogLevel)
|
||||
|
||||
queue := protected.Group("/queue")
|
||||
{
|
||||
queue.GET("/", r.handler.ShowMessageQueue)
|
||||
|
||||
Reference in New Issue
Block a user