appview/state/router: add pagination middleware to good first issues route #799

merged
opened by willdot.net targeting master from willdot.net/tangled-core: gfi-paging

Noticed that paging wasn't working on the good first issues page and after digging around to see how other pages use pagination I noticed that the GFI route wasn't using the paging middleware.

Changed files
+1 -1
appview
state
+1 -1
appview/state/router.go
···
// r.Post("/import", s.ImportRepo)
})
-
r.Get("/goodfirstissues", s.GoodFirstIssues)
+
r.With(middleware.Paginate).Get("/goodfirstissues", s.GoodFirstIssues)
r.With(middleware.AuthMiddleware(s.oauth)).Route("/follow", func(r chi.Router) {
r.Post("/", s.Follow)