Skip to content

Commit ba7c7fe

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

31 files changed

+21
-21
lines changed

coderd/coderd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"cdr.dev/slog"
1313
"github.com/coder/coder/database"
1414
"github.com/coder/coder/httpapi"
15-
"github.com/coder/coder/httpmw"
15+
"github.com/coder/coder/coderd/httpmw"
1616
"github.com/coder/coder/site"
1717
)
1818

coderd/files.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/codersdk"
1616
"github.com/coder/coder/database"
1717
"github.com/coder/coder/httpapi"
18-
"github.com/coder/coder/httpmw"
18+
"github.com/coder/coder/coderd/httpmw"
1919
)
2020

2121
func (api *api) postFile(rw http.ResponseWriter, r *http.Request) {
File renamed without changes.

httpmw/apikey_test.go renamed to coderd/httpmw/apikey_test.go

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

2222
func randomAPIKeyParts() (id string, secret string) {
File renamed without changes.
File renamed without changes.

httpmw/organizationparam_test.go renamed to coderd/httpmw/organizationparam_test.go

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

2222
func TestOrganizationParam(t *testing.T) {
File renamed without changes.

httpmw/projectparam_test.go renamed to coderd/httpmw/projectparam_test.go

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

2222
func TestProjectParam(t *testing.T) {
File renamed without changes.

0 commit comments

Comments
 (0)