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

Commit 25ae52a

Browse files
authored
Use default scheme of http for dev urls (#194)
1 parent deb23b4 commit 25ae52a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

coder-sdk/devurl.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ type DevURL struct {
1313
Port int `json:"port" table:"Port"`
1414
Access string `json:"access" table:"Access"`
1515
Name string `json:"name" table:"Name"`
16+
Scheme string `json:"scheme" table:"-"`
1617
}
1718

1819
type delDevURLRequest struct {
@@ -36,6 +37,7 @@ type CreateDevURLReq struct {
3637
Port int `json:"port"`
3738
Access string `json:"access"`
3839
Name string `json:"name"`
40+
Scheme string `json:"scheme"`
3941
}
4042

4143
// CreateDevURL inserts a new devurl for the authenticated user.

internal/cmd/urls.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ func createDevURLCmd() *cobra.Command {
180180
Name: urlname,
181181
Access: access,
182182
EnvID: env.ID,
183+
Scheme: "http",
183184
})
184185
if err != nil {
185186
return xerrors.Errorf("update DevURL: %w", err)
@@ -191,6 +192,7 @@ func createDevURLCmd() *cobra.Command {
191192
Name: urlname,
192193
Access: access,
193194
EnvID: env.ID,
195+
Scheme: "http",
194196
})
195197
if err != nil {
196198
return xerrors.Errorf("insert DevURL: %w", err)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy