aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/api.go3
-rw-r--r--routers/utils/utils_test.go1
-rw-r--r--routers/web/goget.go1
-rw-r--r--routers/web/repo/issue_test.go1
-rw-r--r--routers/web/web.go3
5 files changed, 6 insertions, 3 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index f312df23db..ab8b07d609 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -83,11 +83,12 @@ import (
"code.gitea.io/gitea/routers/api/v1/org"
"code.gitea.io/gitea/routers/api/v1/repo"
"code.gitea.io/gitea/routers/api/v1/settings"
- _ "code.gitea.io/gitea/routers/api/v1/swagger" // for swagger generation
"code.gitea.io/gitea/routers/api/v1/user"
"code.gitea.io/gitea/services/auth"
"code.gitea.io/gitea/services/forms"
+ _ "code.gitea.io/gitea/routers/api/v1/swagger" // for swagger generation
+
"gitea.com/go-chi/binding"
"github.com/go-chi/cors"
)
diff --git a/routers/utils/utils_test.go b/routers/utils/utils_test.go
index bca5263311..f49ed77b6f 100644
--- a/routers/utils/utils_test.go
+++ b/routers/utils/utils_test.go
@@ -8,6 +8,7 @@ import (
"testing"
"code.gitea.io/gitea/modules/setting"
+
"github.com/stretchr/testify/assert"
)
diff --git a/routers/web/goget.go b/routers/web/goget.go
index 9f367a9277..8a8e1797dc 100644
--- a/routers/web/goget.go
+++ b/routers/web/goget.go
@@ -14,6 +14,7 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"
+
"github.com/unknwon/com"
)
diff --git a/routers/web/repo/issue_test.go b/routers/web/repo/issue_test.go
index 6638baf34a..b8862cf43d 100644
--- a/routers/web/repo/issue_test.go
+++ b/routers/web/repo/issue_test.go
@@ -8,6 +8,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
+
"github.com/stretchr/testify/assert"
)
diff --git a/routers/web/web.go b/routers/web/web.go
index 132e649d45..f84d357bb1 100644
--- a/routers/web/web.go
+++ b/routers/web/web.go
@@ -36,8 +36,7 @@ import (
"code.gitea.io/gitea/services/lfs"
"code.gitea.io/gitea/services/mailer"
- // to registers all internal adapters
- _ "code.gitea.io/gitea/modules/session"
+ _ "code.gitea.io/gitea/modules/session" // to registers all internal adapters
"gitea.com/go-chi/captcha"
"github.com/NYTimes/gziphandler"