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

Function NewAPI

agent/agentfiles/api.go:20–27  ·  view source on GitHub ↗
(logger slog.Logger, filesystem afero.Fs, pathStore *agentgit.PathStore)

Source from the content-addressed store, hash-verified

18}
19
20func 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.
30func (api *API) Routes() http.Handler {

Calls

no outgoing calls