-1
appview/state/pull.go
-1
appview/state/pull.go
+1
-6
appview/state/router.go
+1
-6
appview/state/router.go
···
93
93
r.Route("/round/{round}", func(r chi.Router) {
94
94
r.Get("/", s.RepoPullPatch)
95
95
r.Get("/actions", s.PullActions)
96
-
r.Route("/comment", func(r chi.Router) {
96
+
r.With(AuthMiddleware(s)).Route("/comment", func(r chi.Router) {
97
97
r.Get("/", s.PullComment)
98
98
r.Post("/", s.PullComment)
99
99
})
···
103
103
r.Get("/", s.RepoPullPatchRaw)
104
104
})
105
105
106
-
// authorized requests below this point
107
106
r.Group(func(r chi.Router) {
108
107
r.Use(AuthMiddleware(s))
109
108
r.Route("/resubmit", func(r chi.Router) {
110
109
r.Get("/", s.ResubmitPull)
111
110
r.Post("/", s.ResubmitPull)
112
-
})
113
-
r.Route("/comment", func(r chi.Router) {
114
-
r.Get("/", s.PullComment)
115
-
r.Post("/", s.PullComment)
116
111
})
117
112
r.Post("/close", s.ClosePull)
118
113
r.Post("/reopen", s.ReopenPull)