NewAPI creates a new git watch API.
(logger slog.Logger, pathStore *PathStore, opts ...Option)
| 24 | |
| 25 | // NewAPI creates a new git watch API. |
| 26 | func NewAPI(logger slog.Logger, pathStore *PathStore, opts ...Option) *API { |
| 27 | return &API{ |
| 28 | logger: logger, |
| 29 | pathStore: pathStore, |
| 30 | opts: opts, |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | // Routes returns the chi router for mounting at /api/v0/git. |
| 35 | func (a *API) Routes() http.Handler { |
no outgoing calls