mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
Fix #3391
This commit is contained in:
1 parent
96f92e6105
commit
2cb04db526
2 files changed
+7
-3
No files matched your search
@@ -195,6 +195,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
}, reqToken())
|
||||
|
||||
m.Group("/user", func() {
|
||||
m.Get("", user.GetAuthenticatedUser)
|
||||
m.Combo("/emails").Get(user.ListEmails).
|
||||
Post(bind(api.CreateEmailOption{}), user.AddEmail).
|
||||
Delete(bind(api.CreateEmailOption{}), user.DeleteEmail)
|
||||
|
||||
Reference in new issue
Block a user