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

Method Routes

agent/agentfiles/api.go:30–41  ·  view source on GitHub ↗

Routes returns the HTTP handler for file-related routes.

()

Source from the content-addressed store, hash-verified

28
29// Routes returns the HTTP handler for file-related routes.
30func (api *API) Routes() http.Handler {
31 r := chi.NewRouter()
32
33 r.Post("/list-directory", api.HandleLS)
34 r.Get("/resolve-path", api.HandleResolvePath)
35 r.Get("/read-file", api.HandleReadFile)
36 r.Get("/read-file-lines", api.HandleReadFileLines)
37 r.Post("/write-file", api.HandleWriteFile)
38 r.Post("/edit-files", api.HandleEditFiles)
39
40 return r
41}

Calls 1

GetMethod · 0.65