diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-07-21 00:43:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 00:43:49 +0200 |
commit | 9b25bfa8f4b6faf1b9799629db485c7d0e77ccd6 (patch) | |
tree | f6392c9938ae6b69fe454f9281dd192ce3fb3116 /routers/install | |
parent | Adding remaining enum for migration repo model type. (#26021) (diff) | |
download | forgejo-9b25bfa8f4b6faf1b9799629db485c7d0e77ccd6.tar.xz forgejo-9b25bfa8f4b6faf1b9799629db485c7d0e77ccd6.zip |
Remove redundant "RouteMethods" method (#26024)
The `RouteMethods` is mainly an alias for `Methods` with different
argument order.
Remove it to keep the "route.go" code clear
Diffstat (limited to 'routers/install')
-rw-r--r-- | routers/install/routes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/install/routes.go b/routers/install/routes.go index f09a22b1e6..ce6d41b32d 100644 --- a/routers/install/routes.go +++ b/routers/install/routes.go @@ -20,7 +20,7 @@ import ( func Routes() *web.Route { base := web.NewRoute() base.Use(common.ProtocolMiddlewares()...) - base.RouteMethods("/assets/*", "GET, HEAD", public.AssetsHandlerFunc("/assets/")) + base.Methods("GET, HEAD", "/assets/*", public.AssetsHandlerFunc("/assets/")) r := web.NewRoute() r.Use(common.Sessioner(), Contexter()) |