Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commit25ae52a

Browse files
authored
Use default scheme of http for dev urls (#194)
1 parentdeb23b4 commit25ae52a

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
Portint`json:"port" table:"Port"`
1414
Accessstring`json:"access" table:"Access"`
1515
Namestring`json:"name" table:"Name"`
16+
Schemestring`json:"scheme" table:"-"`
1617
}
1718

1819
typedelDevURLRequeststruct {
@@ -36,6 +37,7 @@ type CreateDevURLReq struct {
3637
Portint`json:"port"`
3738
Accessstring`json:"access"`
3839
Namestring`json:"name"`
40+
Schemestring`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
iferr!=nil {
185186
returnxerrors.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
iferr!=nil {
196198
returnxerrors.Errorf("insert DevURL: %w",err)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp