mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-28 21:00:03 +02:00
Fix #3391
This commit is contained in:
parent
96f92e6105
commit
2cb04db526
2 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue