forked from tangled.org/core
this repo has no description
at test-ci 355 B view raw
1package pipelines 2 3import ( 4 "net/http" 5 6 "github.com/go-chi/chi/v5" 7 "tangled.sh/tangled.sh/core/appview/middleware" 8) 9 10func (p *Pipelines) Router(mw *middleware.Middleware) http.Handler { 11 r := chi.NewRouter() 12 r.Get("/", p.Index) 13 r.Get("/{pipeline}/workflow/{workflow}", p.Workflow) 14 r.Get("/{pipeline}/workflow/{workflow}/logs", p.Logs) 15 16 return r 17}