mirror of
https://github.com/go-gitea/gitea
synced 2024-12-25 18:14:28 +00:00
without "reqToken()" api works ...
* should be still secure beause ctx.user has to be there or nothing will hapen
This commit is contained in:
parent
1aced19838
commit
7c24ae37b8
@ -689,9 +689,9 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||||||
m.Post("/stop", reqToken(), repo.StopIssueStopwatch)
|
m.Post("/stop", reqToken(), repo.StopIssueStopwatch)
|
||||||
})
|
})
|
||||||
m.Group("/subscriptions", func() {
|
m.Group("/subscriptions", func() {
|
||||||
m.Get("", reqToken(), bind(api.User{}), repo.GetIssueWatchers)
|
m.Get("", bind(api.User{}), repo.GetIssueWatchers)
|
||||||
m.Put("/:user", reqToken(), repo.AddIssueSubscription)
|
m.Put("/:user", repo.AddIssueSubscription)
|
||||||
m.Delete("/:user", reqToken(), repo.DelIssueSubscription)
|
m.Delete("/:user", repo.DelIssueSubscription)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}, mustEnableIssuesOrPulls)
|
}, mustEnableIssuesOrPulls)
|
||||||
|
Loading…
Reference in New Issue
Block a user