(logger slog.Logger, filesystem afero.Fs, pathStore *agentgit.PathStore)
| 18 | } |
| 19 | |
| 20 | func NewAPI(logger slog.Logger, filesystem afero.Fs, pathStore *agentgit.PathStore) *API { |
| 21 | api := &API{ |
| 22 | logger: logger, |
| 23 | filesystem: filesystem, |
| 24 | pathStore: pathStore, |
| 25 | } |
| 26 | return api |
| 27 | } |
| 28 | |
| 29 | // Routes returns the HTTP handler for file-related routes. |
| 30 | func (api *API) Routes() http.Handler { |
no outgoing calls