mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	API Endpoints for collaborators (#375)
This commit is contained in:
		| @@ -270,7 +270,12 @@ func RegisterRoutes(m *macaron.Macaron) { | ||||
| 						Patch(bind(api.EditHookOption{}), repo.EditHook). | ||||
| 						Delete(repo.DeleteHook) | ||||
| 				}) | ||||
| 				m.Put("/collaborators/:collaborator", bind(api.AddCollaboratorOption{}), repo.AddCollaborator) | ||||
| 				m.Group("/collaborators", func() { | ||||
| 					m.Get("", repo.ListCollaborators) | ||||
| 					m.Combo("/:collaborator").Get(repo.IsCollaborator). | ||||
| 						Put(bind(api.AddCollaboratorOption{}), repo.AddCollaborator). | ||||
| 						Delete(repo.DeleteCollaborator) | ||||
| 				}) | ||||
| 				m.Get("/raw/*", context.RepoRef(), repo.GetRawFile) | ||||
| 				m.Get("/archive/*", repo.GetArchive) | ||||
| 				m.Group("/branches", func() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user