mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: Drop application host call, default to regions for info (#7457)
* chore: Drop application host call, default to regions for info
This commit is contained in:
Generated
+1
@@ -149,6 +149,7 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Get applications host",
|
||||
"operationId": "get-applications-host",
|
||||
"deprecated": true,
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
|
||||
Generated
+1
@@ -121,6 +121,7 @@
|
||||
"tags": ["Applications"],
|
||||
"summary": "Get applications host",
|
||||
"operationId": "get-applications-host",
|
||||
"deprecated": true,
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
|
||||
@@ -27,6 +27,7 @@ import (
|
||||
// @Tags Applications
|
||||
// @Success 200 {object} codersdk.AppHostResponse
|
||||
// @Router /applications/host [get]
|
||||
// @Deprecated use api/v2/regions and see the primary proxy.
|
||||
func (api *API) appHost(rw http.ResponseWriter, r *http.Request) {
|
||||
host := api.AppHostname
|
||||
if host != "" && api.AccessURL.Port() != "" {
|
||||
|
||||
Reference in New Issue
Block a user