Skip to content

Commit 8147977

Browse files
committed
chore(cdr): Move httpapi to /coderd directory
httpapi is specific to coderd and should be scoped under coderd
1 parent ba7c7fe commit 8147977

27 files changed

+26
-26
lines changed

coderd/coderd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"cdr.dev/slog"
1313
"github.com/coder/coder/database"
14-
"github.com/coder/coder/httpapi"
14+
"github.com/coder/coder/coderd/httpapi"
1515
"github.com/coder/coder/coderd/httpmw"
1616
"github.com/coder/coder/site"
1717
)

coderd/files.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
"github.com/coder/coder/codersdk"
1616
"github.com/coder/coder/database"
17-
"github.com/coder/coder/httpapi"
17+
"github.com/coder/coder/coderd/httpapi"
1818
"github.com/coder/coder/coderd/httpmw"
1919
)
2020

File renamed without changes.

httpapi/httpapi_test.go renamed to coderd/httpapi/httpapi_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/stretchr/testify/require"
1111

12-
"github.com/coder/coder/httpapi"
12+
"github.com/coder/coder/coderd/httpapi"
1313
)
1414

1515
func TestWrite(t *testing.T) {

coderd/httpmw/apikey.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"golang.org/x/oauth2"
1515

1616
"github.com/coder/coder/database"
17-
"github.com/coder/coder/httpapi"
17+
"github.com/coder/coder/coderd/httpapi"
1818
)
1919

2020
// AuthCookie represents the name of the cookie the API key is stored in.

coderd/httpmw/apikey_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/coder/coder/cryptorand"
1616
"github.com/coder/coder/database"
1717
"github.com/coder/coder/database/databasefake"
18-
"github.com/coder/coder/httpapi"
18+
"github.com/coder/coder/coderd/httpapi"
1919
"github.com/coder/coder/coderd/httpmw"
2020
)
2121

coderd/httpmw/httpmw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/go-chi/chi/v5"
88
"github.com/google/uuid"
99

10-
"github.com/coder/coder/httpapi"
10+
"github.com/coder/coder/coderd/httpapi"
1111
)
1212

1313
// parseUUID consumes a url parameter and parses it as a UUID.

coderd/httpmw/organizationparam.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/go-chi/chi/v5"
1111

1212
"github.com/coder/coder/database"
13-
"github.com/coder/coder/httpapi"
13+
"github.com/coder/coder/coderd/httpapi"
1414
)
1515

1616
type organizationParamContextKey struct{}

coderd/httpmw/projectparam.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99

1010
"github.com/go-chi/chi/v5"
1111

12+
"github.com/coder/coder/coderd/httpapi"
1213
"github.com/coder/coder/database"
13-
"github.com/coder/coder/httpapi"
1414
)
1515

1616
type projectParamContextKey struct{}

coderd/httpmw/projectversionparam.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/go-chi/chi/v5"
1111

1212
"github.com/coder/coder/database"
13-
"github.com/coder/coder/httpapi"
13+
"github.com/coder/coder/coderd/httpapi"
1414
)
1515

1616
type projectVersionParamContextKey struct{}

0 commit comments

Comments
 (0)