mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 15:20:30 +08:00
Service list and minio status (#13480)
### What problem does this PR solve? 1. Resolve standard user can access admin service 2. Get RAGFlow service status 3. Fix minio status fetching ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [x] New Feature (non-breaking change which adds functionality) --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -46,6 +46,7 @@ func (r *Router) Setup(engine *gin.Engine) {
|
||||
// Public routes
|
||||
admin.GET("/ping", r.handler.Ping)
|
||||
admin.POST("/login", r.handler.Login)
|
||||
admin.GET("/logout", r.handler.Logout)
|
||||
|
||||
admin.POST("/reports", r.handler.Reports)
|
||||
|
||||
@@ -55,7 +56,6 @@ func (r *Router) Setup(engine *gin.Engine) {
|
||||
{
|
||||
// Auth
|
||||
protected.GET("/auth", r.handler.AuthCheck)
|
||||
protected.GET("/logout", r.handler.Logout)
|
||||
|
||||
// User management
|
||||
protected.GET("/users", r.handler.ListUsers)
|
||||
|
||||
Reference in New Issue
Block a user