Skip to content

Commit 7c24ae3

Browse files
committed
without "reqToken()" api works ...
* should be still secure beause ctx.user has to be there or nothing will hapen
1 parent 1aced19 commit 7c24ae3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routers/api/v1/api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,9 +689,9 @@ func RegisterRoutes(m *macaron.Macaron) {
689689
m.Post("/stop", reqToken(), repo.StopIssueStopwatch)
690690
})
691691
m.Group("/subscriptions", func() {
692-
m.Get("", reqToken(), bind(api.User{}), repo.GetIssueWatchers)
693-
m.Put("/:user", reqToken(), repo.AddIssueSubscription)
694-
m.Delete("/:user", reqToken(), repo.DelIssueSubscription)
692+
m.Get("", bind(api.User{}), repo.GetIssueWatchers)
693+
m.Put("/:user", repo.AddIssueSubscription)
694+
m.Delete("/:user", repo.DelIssueSubscription)
695695
})
696696
})
697697
}, mustEnableIssuesOrPulls)

0 commit comments

Comments
 (0)