mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-25 00:00:53 +00:00
fix: allow read-only firewall APIs in demo mode (#13914)
This commit is contained in:
@@ -27,6 +27,11 @@ var demoAllowedRoutes = map[demoRoute]struct{}{
|
||||
{http.MethodPost, "/api/v2/toolbox/clam/base"}: {},
|
||||
{http.MethodPost, "/api/v2/backups/record/size"}: {},
|
||||
|
||||
{http.MethodPost, "/api/v2/hosts/firewall/base"}: {},
|
||||
{http.MethodPost, "/api/v2/hosts/firewall/forward/base"}: {},
|
||||
{http.MethodPost, "/api/v2/hosts/firewall/rules/native/detail"}: {},
|
||||
{http.MethodPost, "/api/v2/hosts/firewall/rules/sync/preview"}: {},
|
||||
|
||||
{http.MethodPost, "/api/v2/core/auth/login"}: {},
|
||||
{http.MethodPost, "/api/v2/core/logs/login"}: {},
|
||||
{http.MethodPost, "/api/v2/core/logs/operation"}: {},
|
||||
|
||||
Reference in New Issue
Block a user