routes.go
⎇
Raw
1package web
2
3import "github.com/go-chi/chi/v5"
4
5// routes mounts all route groups. Order matters: git smart HTTP and
6// fixed paths come before the /{repo} catch-alls.
7func (s *Server) routes(r chi.Router) {
8 r.Group(func(r chi.Router) {
9 r.Use(s.withSession)
10 s.gitRoutes(r)
11 s.registryRoutes(r)
12 s.authRoutes(r)
13 s.settingsRoutes(r)
14 s.avatarRoutes(r)
15 s.ciRoutes(r)
16 s.issueRoutes(r)
17 s.patchRoutes(r)
18 s.releaseRoutes(r)
19 s.imageRoutes(r)
20 s.repoRoutes(r)
21 })
22}
23