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