summaryrefslogtreecommitdiffstats
path: root/modules/web
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-10-14 10:50:23 +0800
committerGitHub <noreply@github.com>2021-10-13 22:50:23 -0400
commitd47798ccc72236fa239834583ae8367a16ab3fbe (patch)
tree87b6bdcc1bafe828972d63a3aa55f000a5e2c019 /modules/web
parentbd14c40461042bd2bc5570d5f7cb9dfddda22f8a (diff)
downloadgitea-d47798ccc72236fa239834583ae8367a16ab3fbe.tar.gz
gitea-d47798ccc72236fa239834583ae8367a16ab3fbe.zip
Upgrade chi to v5 (#17298)
Diffstat (limited to 'modules/web')
-rw-r--r--modules/web/route.go2
-rw-r--r--modules/web/route_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/web/route.go b/modules/web/route.go
index 9b08510264..ad9cea8bb6 100644
--- a/modules/web/route.go
+++ b/modules/web/route.go
@@ -15,7 +15,7 @@ import (
"code.gitea.io/gitea/modules/web/middleware"
"gitea.com/go-chi/binding"
- "github.com/go-chi/chi"
+ chi "github.com/go-chi/chi/v5"
)
// Wrap converts all kinds of routes to standard library one
diff --git a/modules/web/route_test.go b/modules/web/route_test.go
index 03955f0f2d..a8470fec94 100644
--- a/modules/web/route_test.go
+++ b/modules/web/route_test.go
@@ -10,7 +10,7 @@ import (
"net/http/httptest"
"testing"
- "github.com/go-chi/chi"
+ chi "github.com/go-chi/chi/v5"
"github.com/stretchr/testify/assert"
)