add admin API email endpoints (#22792)
add email endpoint to admin API to ensure API parity with admin dashboard.
This commit is contained in:
parent
03591f0f95
commit
d56bb74201
5 changed files with 188 additions and 0 deletions
|
@ -1260,6 +1260,10 @@ func Routes(ctx gocontext.Context) *web.Route {
|
|||
m.Post("/rename", bind(api.RenameUserOption{}), admin.RenameUser)
|
||||
}, context_service.UserAssignmentAPI())
|
||||
})
|
||||
m.Group("/emails", func() {
|
||||
m.Get("", admin.GetAllEmails)
|
||||
m.Get("/search", admin.SearchEmail)
|
||||
})
|
||||
m.Group("/unadopted", func() {
|
||||
m.Get("", admin.ListUnadoptedRepositories)
|
||||
m.Post("/{username}/{reponame}", admin.AdoptRepository)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue