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

Method Routes

agent/x/agentdesktop/api.go:76–85  ·  view source on GitHub ↗

Routes returns the chi router for mounting at /api/v0/desktop.

()

Source from the content-addressed store, hash-verified

74
75// Routes returns the chi router for mounting at /api/v0/desktop.
76func (a *API) Routes() http.Handler {
77 r := chi.NewRouter()
78 r.Get("/vnc", a.handleDesktopVNC)
79 r.Post("/action", a.handleAction)
80 r.Route("/recording", func(r chi.Router) {
81 r.Post("/start", a.handleRecordingStart)
82 r.Post("/stop", a.handleRecordingStop)
83 })
84 return r
85}
86
87func (a *API) handleDesktopVNC(rw http.ResponseWriter, r *http.Request) {
88 ctx := r.Context()

Calls 1

GetMethod · 0.65