mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-20 15:36:30 +00:00
fix normalize routes
This commit is contained in:
parent
d635097105
commit
42d6d8d3b2
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ func normalize(h http.Handler) http.Handler {
|
||||||
|
|
||||||
parts := strings.Split(r.URL.Path, "/")[1:]
|
parts := strings.Split(r.URL.Path, "/")[1:]
|
||||||
switch parts[0] {
|
switch parts[0] {
|
||||||
case "settings", "slash", "repos", "api", "login", "logout", "", "authorize", "hook", "static", "gitlab":
|
case "settings", "bots", "repos", "api", "login", "logout", "", "authorize", "hook", "static", "gitlab":
|
||||||
// no-op
|
// no-op
|
||||||
default:
|
default:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue