mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	阶段性提交
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
package nodes
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/default/nodes/grants"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
 | 
			
		||||
	"github.com/iwind/TeaGo"
 | 
			
		||||
)
 | 
			
		||||
@@ -13,6 +14,13 @@ func init() {
 | 
			
		||||
			Prefix("/nodes").
 | 
			
		||||
			Get("", new(IndexAction)).
 | 
			
		||||
			GetPost("/create", new(CreateAction)).
 | 
			
		||||
 | 
			
		||||
			// 授权管理
 | 
			
		||||
			Get("/grants", new(grants.IndexAction)).
 | 
			
		||||
			GetPost("/grants/create", new(grants.CreateAction)).
 | 
			
		||||
			GetPost("/grants/update", new(grants.UpdateAction)).
 | 
			
		||||
			Post("/grants/delete", new(grants.DeleteAction)).
 | 
			
		||||
			Get("/grants/grant", new(grants.GrantAction)).
 | 
			
		||||
			EndAll()
 | 
			
		||||
	})
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user