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

Method appHost

coderd/workspaceapps.go:34–38  ·  view source on GitHub ↗

@Summary Get applications host @ID get-applications-host @Security CoderSessionToken @Produce json @Tags Applications @Success 200 {object} codersdk.AppHostResponse @Router /api/v2/applications/host [get] @Deprecated use api/v2/regions and see the primary proxy.

(rw http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

32// @Router /api/v2/applications/host [get]
33// @Deprecated use api/v2/regions and see the primary proxy.
34func (api *API) appHost(rw http.ResponseWriter, r *http.Request) {
35 httpapi.Write(r.Context(), rw, http.StatusOK, codersdk.AppHostResponse{
36 Host: appurl.SubdomainAppHost(api.AppHostname, api.AccessURL),
37 })
38}
39
40// workspaceApplicationAuth is an endpoint on the main router that handles
41// redirects from the subdomain handler.

Callers

nothing calls this directly

Calls 3

WriteFunction · 0.92
SubdomainAppHostFunction · 0.92
ContextMethod · 0.65

Tested by

no test coverage detected