mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	New API routes added (#5594)
* New API routes added * Comments added * Build fix * swagger_v1_json.tmpl without new line character * Typo fix * Code review changes * Code review changes * Add copyright * Add copyright * Add copyright * Update per @lafriks feedback * Update org.go * Update user.go * Update user.go * make fmt
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							b9f87376a2
						
					
				
				
					commit
					1b90692844
				
			@@ -671,7 +671,9 @@ func RegisterRoutes(m *macaron.Macaron) {
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		m.Group("/admin", func() {
 | 
			
		||||
			m.Get("/orgs", admin.GetAllOrgs)
 | 
			
		||||
			m.Group("/users", func() {
 | 
			
		||||
				m.Get("", admin.GetAllUsers)
 | 
			
		||||
				m.Post("", bind(api.CreateUserOption{}), admin.CreateUser)
 | 
			
		||||
				m.Group("/:username", func() {
 | 
			
		||||
					m.Combo("").Patch(bind(api.EditUserOption{}), admin.EditUser).
 | 
			
		||||
@@ -680,6 +682,7 @@ func RegisterRoutes(m *macaron.Macaron) {
 | 
			
		||||
						m.Post("", bind(api.CreateKeyOption{}), admin.CreatePublicKey)
 | 
			
		||||
						m.Delete("/:id", admin.DeleteUserPublicKey)
 | 
			
		||||
					})
 | 
			
		||||
					m.Get("/orgs", org.ListUserOrgs)
 | 
			
		||||
					m.Post("/orgs", bind(api.CreateOrgOption{}), admin.CreateOrg)
 | 
			
		||||
					m.Post("/repos", bind(api.CreateRepoOption{}), admin.CreateRepo)
 | 
			
		||||
				})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user