@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)
| 32 | // @Router /api/v2/applications/host [get] |
| 33 | // @Deprecated use api/v2/regions and see the primary proxy. |
| 34 | func (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. |
nothing calls this directly
no test coverage detected