package web import "github.com/go-chi/chi/v5" // routes mounts all route groups. Order matters: git smart HTTP and // fixed paths come before the /{repo} catch-alls. func (s *Server) routes(r chi.Router) { r.Group(func(r chi.Router) { r.Use(s.withSession) s.gitRoutes(r) s.authRoutes(r) s.settingsRoutes(r) s.avatarRoutes(r) s.ciRoutes(r) s.issueRoutes(r) s.patchRoutes(r) s.releaseRoutes(r) s.repoRoutes(r) }) }