2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 13:47:15 +08:00

refactor: 重命名openresty为nginx

This commit is contained in:
耗子
2024-10-12 19:13:33 +08:00
parent 6072332e1a
commit 86e4cff989
19 changed files with 64 additions and 76 deletions

View File

@@ -15,7 +15,7 @@ func MustInstall(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
var slugs []string
if strings.HasPrefix(r.URL.Path, "/api/website") {
slugs = append(slugs, "openresty")
slugs = append(slugs, "nginx")
} else if strings.HasPrefix(r.URL.Path, "/api/container") {
slugs = append(slugs, "podman", "docker")
} else if strings.HasPrefix(r.URL.Path, "/api/apps/") {