Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Use default scheme of http for dev urls #194

Merged
merged 1 commit into from
Nov 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions coder-sdk/devurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type DevURL struct {
Port int `json:"port" table:"Port"`
Access string `json:"access" table:"Access"`
Name string `json:"name" table:"Name"`
Scheme string `json:"scheme" table:"-"`
}

type delDevURLRequest struct {
Expand All @@ -36,6 +37,7 @@ type CreateDevURLReq struct {
Port int `json:"port"`
Access string `json:"access"`
Name string `json:"name"`
Scheme string `json:"scheme"`
}

// CreateDevURL inserts a new devurl for the authenticated user.
Expand Down
2 changes: 2 additions & 0 deletions internal/cmd/urls.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func createDevURLCmd() *cobra.Command {
Name: urlname,
Access: access,
EnvID: env.ID,
Scheme: "http",
})
if err != nil {
return xerrors.Errorf("update DevURL: %w", err)
Expand All @@ -191,6 +192,7 @@ func createDevURLCmd() *cobra.Command {
Name: urlname,
Access: access,
EnvID: env.ID,
Scheme: "http",
})
if err != nil {
return xerrors.Errorf("insert DevURL: %w", err)
Expand Down