MCPcopy Index your code
hub / github.com/coder/coder / Routes

Method Routes

agent/agentgit/api.go:35–39  ·  view source on GitHub ↗

Routes returns the chi router for mounting at /api/v0/git.

()

Source from the content-addressed store, hash-verified

33
34// Routes returns the chi router for mounting at /api/v0/git.
35func (a *API) Routes() http.Handler {
36 r := chi.NewRouter()
37 r.Get("/watch", a.handleWatch)
38 return r
39}
40
41func (a *API) handleWatch(rw http.ResponseWriter, r *http.Request) {
42 ctx := r.Context()

Callers 4

dialGitWatchFunction · 0.95
apiHandlerMethod · 0.45

Calls 1

GetMethod · 0.65

Tested by 3

dialGitWatchFunction · 0.76